diff --git a/deco.lua b/deco.lua index ac67a82..105187a 100644 --- a/deco.lua +++ b/deco.lua @@ -119,7 +119,7 @@ do if odeco.schematic then deco.name = odeco.schematic:match('([%w_]+)%.mts') or odeco.schematic - else + elseif odeco.decoration and type(odeco.decoration) == 'string' then deco.name = odeco.decoration:match('.*:([%w_]+)') or odeco.decoration end diff --git a/init.lua b/init.lua index 4dcab2d..2c7fbb0 100644 --- a/init.lua +++ b/init.lua @@ -162,7 +162,7 @@ else -- This tables looks up nodes that aren't already stored. squaresville.node = setmetatable({}, { __index = function(t, k) - if not (t and k and type(t) == 'table') then + if not (t and k and type(t) == 'table' and type(k) == 'string') then return end diff --git a/nodes.lua b/nodes.lua index 912f58a..a922b9a 100644 --- a/nodes.lua +++ b/nodes.lua @@ -358,7 +358,7 @@ newnode.groups.poison = 3 newnode.liquid_alternative_flowing = "squaresville:water_poison_flowing" newnode.liquid_alternative_source = "squaresville:water_poison_source" newnode.post_effect_color = {a = 103, r = 108, g = 128, b = 64} -newnode.special_tiles[1].name = "squaresville_water_poison_source_animated.png" +--newnode.special_tiles[1].name = "squaresville_water_poison_source_animated.png" newnode.tiles[1].name = "squaresville_water_poison_source_animated.png" minetest.register_node("squaresville:water_poison_source", newnode) @@ -369,7 +369,7 @@ newnode.groups.poison = 3 newnode.liquid_alternative_flowing = "squaresville:water_poison_flowing" newnode.liquid_alternative_source = "squaresville:water_poison_source" newnode.post_effect_color = {a = 103, r = 108, g = 128, b = 64} -newnode.special_tiles[1].name = "squaresville_water_poison_flowing_animated.png" +--newnode.special_tiles[1].name = "squaresville_water_poison_flowing_animated.png" newnode.tiles[1] = "squaresville_water_poison.png" minetest.register_node("squaresville:water_poison_flowing", newnode)