mirror of
https://github.com/minetest/minetest_game.git
synced 2024-11-17 07:20:17 +01:00
let apples always drop
This commit is contained in:
parent
c1cd24c378
commit
471daf57ae
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue
Block a user