Fix rightclick for land turtles

This commit is contained in:
Daniel Borchmann 2018-10-06 13:18:32 +02:00
parent 67b721d68b
commit 1f52cdb7bb
No known key found for this signature in database
GPG Key ID: 4F63DB96D45AA9C6
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- a/mobs_water/mobs_turtles/init.lua
+++ b/mobs_water/mobs_turtles/init.lua
@@ -51,9 +51,9 @@ if mobs.mod and mobs.mod == "redo" then
follow = "farming:carrot",
on_rightclick = function(self, clicker)
self.state = ""
- set_velocity(self, 0)
+ self.object:set_velocity({x = 0, y = 0, z = 0})
self.object:set_animation({x=self.animation.hide_start, y=self.animation.hide_end}, self.animation.speed_normal, 0)
minetest.after(5, function()
self.state = "stand"
end)
mobs:capture_mob(self, clicker, 0, 80, 100, true, nil)

View File

@ -3,3 +3,4 @@ create-mymonths-settings-file
fix-funcaves
disable-funcaves-cave-generation
mobf-trader-no-animals
fix-turtle-rightclick