parent
fa7f05fd0c
commit
8ef6e9a529
|
@ -56,7 +56,7 @@ minetest.register_entity("advtrains:discouple", {
|
|||
self.object:remove()
|
||||
return
|
||||
end
|
||||
if self.wagon.old_velocity > 0 or self.wagon.pos_in_trainparts==1 then
|
||||
if (self.wagon.old_velocity and self.wagon.old_velocity > 0) or self.wagon.pos_in_trainparts==1 then
|
||||
self.object:remove()
|
||||
end
|
||||
atprintbm("discouple_step", t)
|
||||
|
|
Loading…
Reference in New Issue