1
0
mirror of https://github.com/HybridDog/builtin_item.git synced 2025-12-24 16:35:28 +01:00
Files
builtin_item/init.lua
HybridDog 3c45e98ff2 Fix crashes with objects in invalid state
If __builtin:item's on_step() makes the dropped item invalid, e.g. by
removing it, a later get_velocity() returns nil, which leads to a crash.

After this change, the overridden on_step() aborts early if the object
became invalid.
2025-11-14 16:24:06 +01:00

3.7 KiB