Fix crash when hopper minecart is off rails

This commit is contained in:
teknomunk 2025-01-11 09:37:13 -06:00 committed by the-real-herowl
parent e08505d24d
commit 53e1546219

View file

@ -171,7 +171,7 @@ mod.register_minecart({
hopper_take_item(self, dtime)
local staticdata = self._staticdata
local pos = mcl_minecarts.get_cart_position(staticdata)
local pos = mcl_minecarts.get_cart_position(staticdata) or self.object:get_pos()
self._mcl_minecarts_on_enter(self, pos, staticdata)
end,