1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-09-29 07:00:20 +02: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
itemstacks = minetest.get_node_drops(n0.name)
for _, itemname in ipairs(itemstacks) do
if itemname ~= n0.name then
if itemname == "default:apple" or itemname ~= n0.name then
local p_drop = {
x = p0.x - 0.5 + math.random(),
y = p0.y - 0.5 + math.random(),