mirror of
https://github.com/Sokomine/cottages.git
synced 2025-04-20 19:10:25 +02:00
override anvil entity if cottages anvil is enabled
This commit is contained in:
parent
77346267d7
commit
cc6ee4f56c
@ -63,3 +63,21 @@ else
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
if minetest.registered_entities["anvil:item"] then
|
||||
-- luacheck: globals minetest
|
||||
minetest.registered_entities["anvil:item"].on_activate = function(self)
|
||||
if self.object then
|
||||
self.object:remove()
|
||||
end
|
||||
end
|
||||
|
||||
else
|
||||
minetest.register_entity(":anvil:item", {
|
||||
on_activate = function(self)
|
||||
if self.object then
|
||||
self.object:remove()
|
||||
end
|
||||
end
|
||||
})
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user