Unalias hotbar slot textures
This was causing a texture from texture packs to be reinterpreted differently, causing buggy- looking hotbars, and TP authors would not have been able to change the hotbar to work with both versions. Now before and after use different sets of textures so a single TP can safely support both before and after.
This commit is contained in:
parent
f5362fa950
commit
79622ce150
@ -18,7 +18,7 @@ nodecore.register_playerstep({
|
||||
for i = 1, hotbar_slots do
|
||||
local stack = inv:get_stack("main", i)
|
||||
local def = stack and (not stack:is_empty()) and stack:get_definition()
|
||||
local suff = (i == player:get_wield_index()) and "_sel" or "_bar"
|
||||
local suff = (i == player:get_wield_index()) and "_sel" or "_slot"
|
||||
if def and def.hotbar_type then
|
||||
suff = suff .. "_" .. def.hotbar_type
|
||||
end
|
||||
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Loading…
x
Reference in New Issue
Block a user