Fix rightclick for land turtles
This commit is contained in:
parent
67b721d68b
commit
1f52cdb7bb
13
patches/fix-turtle-rightclick
Normal file
13
patches/fix-turtle-rightclick
Normal 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)
|
@ -3,3 +3,4 @@ create-mymonths-settings-file
|
||||
fix-funcaves
|
||||
disable-funcaves-cave-generation
|
||||
mobf-trader-no-animals
|
||||
fix-turtle-rightclick
|
||||
|
Loading…
x
Reference in New Issue
Block a user