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:
Aaron Suen 2020-09-04 12:56:18 -04:00
parent f5362fa950
commit 79622ce150
4 changed files with 1 additions and 1 deletions

View File

@ -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

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB