mirror of
https://github.com/pyrollo/display_modpack.git
synced 2025-10-17 17:45:21 +02:00
handle interactions w/ explosions (#3)
* don't let explosions destroy sign entities * destroy sign entities if sign node is exploded * remove redundant destructor call * make sure other things don't try to interact w/ the signs entity * name will be "" for non-players or unknown players. * remove default value from initial values --------- Co-authored-by: Niklp <89982526+Niklp09@users.noreply.github.com>
This commit is contained in:
@@ -61,6 +61,11 @@ minetest.register_lbm({ name = "signs:conpatibility_1",
|
||||
-- We need to have this entity registered to be able to remove it.
|
||||
if minetest.registered_entities["signs:text"] == nil then
|
||||
minetest.register_entity("signs:text", {
|
||||
on_activate = function(self)
|
||||
if self.object then
|
||||
self.object:remove()
|
||||
end
|
||||
end,
|
||||
initial_properties = {
|
||||
collisionbox = {0, 0, 0, 0, 0, 0},
|
||||
visual = "upright_sprite",
|
||||
|
Reference in New Issue
Block a user