]> git.lizzy.rs Git - Crafter.git/commitdiff
Fix tnt running deprecated call
authoroilboi <47129783+oilboi@users.noreply.github.com>
Tue, 30 Jun 2020 06:48:09 +0000 (02:48 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Tue, 30 Jun 2020 06:48:09 +0000 (02:48 -0400)
mods/tnt/init.lua

index b5457e9a2359ec02a74d2bf2df1e5d16bce61587..9e4800975b053015d3dd997ac2961917c5a7879f 100644 (file)
@@ -242,7 +242,7 @@ local range
 local tnt_boom = function(self,dtime)
        self.timer = self.timer - dtime
        if not self.shot or not self.redstone_activated then
-               vel = self.object:getvelocity()
+               vel = self.object:get_velocity()
                vel = vector.multiply(vel,-0.05)
                self.object:add_velocity(vector.new(vel.x,0,vel.z))
        end