diff options
Diffstat (limited to 'railcart')
-rw-r--r-- | railcart/init.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railcart/init.lua b/railcart/init.lua index d9b543b..2cd9586 100644 --- a/railcart/init.lua +++ b/railcart/init.lua @@ -68,6 +68,11 @@ minetest.register_entity("railcart:cart_entity", { if puncher:get_player_control().sneak then if self.cart then if self.cart.id then + if self.cart.inv then + if not self.cart.inv:is_empty("main") then + return + end + end railcart:remove_cart(self.cart.id) end end |