mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
c03f9abd18
The old code takes the first return val of `minetest.item_place_node' which is `itemstack'. Therefore, the variable `success' in the old code is always true. The new code takes the second val which will be nil if an invalid node placement occured. This check is necessary since the ladder may be placed in the front of pointed block while there is a node with hole (slabs, fences etc.) at the same place resulting an invalid placement and sound played when it shouldn't be played. |
||
---|---|---|
.. | ||
CORE | ||
ENTITIES | ||
ENVIRONMENT | ||
HELP | ||
HUD | ||
ITEMS | ||
MAPGEN | ||
MISC | ||
PLAYER |