add local

This commit is contained in:
tenplus1 2022-03-14 08:29:01 +00:00
parent 0eafe2e128
commit 15a6083540

View File

@ -24,7 +24,7 @@ minetest.register_entity("dmobs:butterfly", {
collisionbox = {0,0,0,0,0.1,0}, collisionbox = {0,0,0,0,0.1,0},
on_activate = function(self) on_activate = function(self)
num = math.random(1,4) local num = math.random(4)
self.object:set_properties({textures = {"dmobs_butterfly"..num..".png",},}) self.object:set_properties({textures = {"dmobs_butterfly"..num..".png",},})
self.object:set_animation({x=1, y=10}, 20, 0) self.object:set_animation({x=1, y=10}, 20, 0)