minetest-mods / skinsdb

Player skin mod, supporting unified_inventory, sfinv and smart_inventory
28 stars 41 forks source link

Hand range in creative mode is wrong #92

Open GreenXenith opened 9 months ago

GreenXenith commented 9 months ago

Hand range should be higher (10? I dont remember) when creative mode is enabled.

SmallJoker commented 8 months ago

This is actually a Minetest limitation. The hand range is overwritten by the "hand" slot item: https://github.com/minetest/minetest/blob/b1dec37adb16f7ccd21209cbdd8381865cdfb5ca/src/client/game.cpp#L3241-L3245

GreenXenith commented 8 months ago

This is actually a Minetest limitation. The hand range is overwritten by the "hand" slot item: https://github.com/minetest/minetest/blob/b1dec37adb16f7ccd21209cbdd8381865cdfb5ca/src/client/game.cpp#L3241-L3245

That is correct, but the range of the custom hand item can be changed if creative mode is enabled when registered.