stuff
parent
da146668e8
commit
c0a0c416ab
|
@ -109,7 +109,7 @@ minetest.register_globalstep(function(dtime)
|
|||
to_player = player:get_player_name(),
|
||||
})
|
||||
xp = io.open(minetest.get_worldpath().."/"..player:get_player_name().."_experience", "r")
|
||||
experience = xp:read("*l")
|
||||
experience = tonumber(xp:read("*l"))
|
||||
xp:close()
|
||||
if experience ~= nil then
|
||||
local xp_max = experience+1
|
||||
|
|
|
@ -292,12 +292,9 @@ minetest.register_entity("hyrule_mapgen:butterfly", {
|
|||
self.object:set_properties({textures = {"hyrule_mapgen_butterfly"..num..".png",},})
|
||||
self.object:set_animation({x=1, y=10}, 20, 0)
|
||||
self.object:setyaw(math.pi+num)
|
||||
--minetest.after(10, function()
|
||||
--self.object:remove()
|
||||
--end)
|
||||
if math.random(1,100) == 1 then
|
||||
minetest.after(60, function()
|
||||
self.object:remove()
|
||||
end
|
||||
end)
|
||||
end,
|
||||
on_step = function(self)
|
||||
local pos = self.object:getpos()
|
||||
|
|
Loading…
Reference in New Issue