workaround engine bugs

master
MisterE123 2021-01-27 23:57:16 -05:00 committed by GitHub
parent 8ebd291fa7
commit 0b8eb150f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 34 deletions

View File

@ -325,24 +325,6 @@ arena_lib.on_time_tick('wormball', function(arena)
end
for pl_name,stats in pairs(arena.players) do
<<<<<<< Updated upstream
=======
--testing
local test_pl = minetest.get_player_by_name(pl_name)
local test_state = ""
if test_pl:get_attach() == nil then
test_state = 'not attached'
else
test_state = 'attached'
end
--minetest.chat_send_all("time: "..arena.current_time.." player "..pl_name.. ' is '..test_state)
>>>>>>> Stashed changes
local rand_pos = {x = math.random(x1,x2),y = math.random(y1,y2), z=math.random(z1,z2)}
local item = 'none'
if math.random(1,3)== 1 then

View File

@ -194,22 +194,6 @@ minetest.register_entity('wormball:player_att',{
end,
<<<<<<< Updated upstream
=======
-- on_attach_child = function(self, child)
-- if child:is_player() then
-- minetest.chat_send_all(child:get_player_name()..' was attached')
-- end
-- end,
-- on_detach_child = function(self, child)
-- if child:is_player() then
-- minetest.chat_send_all(child:get_player_name()..' was detached')
-- end
-- end,
>>>>>>> Stashed changes
})