Prevent bonemealing grass from making flowers and also bonemealing the block above the grass
This commit is contained in:
parent
6a7c3c986e
commit
0b9cdaf613
|
@ -126,10 +126,11 @@ if not olddef then
|
|||
else
|
||||
local oldhandler = olddef._on_bone_meal
|
||||
local newhandler = function(itemstack, placer, pointed_thing)
|
||||
bonemeal_grass(pointed_thing, placer)
|
||||
local res = bonemeal_grass(pointed_thing, placer)
|
||||
if oldhandler then
|
||||
oldhandler(itemstack, placer, pointed_thing)
|
||||
res = oldhandler(itemstack, placer, pointed_thing) or res
|
||||
end
|
||||
return res
|
||||
end
|
||||
minetest.override_item(nodename, {_on_bone_meal = newhandler})
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue