]> git.lizzy.rs Git - Crafter.git/commitdiff
Remove old derailing prevention
authoroilboi <47129783+oilboi@users.noreply.github.com>
Sat, 4 Jul 2020 20:07:36 +0000 (16:07 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Sat, 4 Jul 2020 20:07:36 +0000 (16:07 -0400)
mods/minecart/init.lua

index 87f33604c54ceaeaf4d704cd9324998376985b5e..08039f48abc950d7ac4349af55211773f5d610a6 100644 (file)
@@ -168,14 +168,6 @@ minecart.on_step = function(self,dtime)
                self.object:move_to(vector.add(float_pos,test))
        end
 
-       
-       --stop minecarts from derailing when going super fast
-       if self.old_pos and vector.distance(float_pos,self.old_pos) > 0.5 then
-               self.object:move_to(self.old_pos)
-               float_pos = self.object:get_pos()
-               pos = vector.round(self.old_pos)
-       end
-
        if not self.axis_lock then
                local possible_dirs = create_axis(pos)
                for _,dir in pairs(possible_dirs) do