1
0
mirror of https://github.com/luanti-org/minetest_game.git synced 2025-11-06 18:05:19 +01:00

let apples always drop

This commit is contained in:
BlockMen
2013-05-21 17:25:53 +03:00
parent c1cd24c378
commit 471daf57ae

View File

@@ -284,7 +284,7 @@ minetest.register_abm({
-- Drop stuff other than the node itself -- Drop stuff other than the node itself
itemstacks = minetest.get_node_drops(n0.name) itemstacks = minetest.get_node_drops(n0.name)
for _, itemname in ipairs(itemstacks) do for _, itemname in ipairs(itemstacks) do
if itemname ~= n0.name then if itemname == "default:apple" or itemname ~= n0.name then
local p_drop = { local p_drop = {
x = p0.x - 0.5 + math.random(), x = p0.x - 0.5 + math.random(),
y = p0.y - 0.5 + math.random(), y = p0.y - 0.5 + math.random(),