add local
This commit is contained in:
parent
0eafe2e128
commit
15a6083540
@ -24,7 +24,7 @@ minetest.register_entity("dmobs:butterfly", {
|
||||
collisionbox = {0,0,0,0,0.1,0},
|
||||
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_animation({x=1, y=10}, 20, 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user