don't crash anvils
This commit is contained in:
parent
cc6ee4f56c
commit
0aeb5989d1
|
@ -66,7 +66,7 @@ end
|
||||||
|
|
||||||
if minetest.registered_entities["anvil:item"] then
|
if minetest.registered_entities["anvil:item"] then
|
||||||
-- luacheck: globals minetest
|
-- luacheck: globals minetest
|
||||||
minetest.registered_entities["anvil:item"].on_activate = function(self)
|
minetest.registered_entities["anvil:item"].on_step = function(self)
|
||||||
if self.object then
|
if self.object then
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue