mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-04-21 06:55:14 +02:00
Fix crash when hopper minecart is off rails
This commit is contained in:
parent
e08505d24d
commit
53e1546219
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue