mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 22:25:11 +00:00
Remove redundant death callback
This commit is contained in:
parent
30d3e66e7f
commit
7ac1d3ec35
1 changed files with 0 additions and 21 deletions
|
@ -1,24 +1,3 @@
|
|||
--
|
||||
-- On Die
|
||||
--
|
||||
--if minetest.setting_get("keepInventory") == false then
|
||||
minetest.register_on_dieplayer(function(player)
|
||||
local inv = player:get_inventory()
|
||||
local pos = player:getpos()
|
||||
for i,stack in ipairs(inv:get_list("main")) do
|
||||
local x = math.random(0, 9)/3
|
||||
local z = math.random(0, 9)/3
|
||||
pos.x = pos.x + x
|
||||
pos.z = pos.z + z
|
||||
minetest.add_item(pos, stack)
|
||||
stack:clear()
|
||||
inv:set_stack("main", i, stack)
|
||||
pos.x = pos.x - x
|
||||
pos.z = pos.z - z
|
||||
end
|
||||
end)
|
||||
--end
|
||||
|
||||
--
|
||||
-- Lavacooling
|
||||
--
|
||||
|
|
Loading…
Reference in a new issue