]> git.lizzy.rs Git - xdecor.git/commitdiff
Workbench: fix minor registration issue with tiles field
authorJP Guerrero <jeanpatrick.guerrero@gmail.com>
Thu, 1 Dec 2016 14:35:10 +0000 (15:35 +0100)
committerJP Guerrero <jeanpatrick.guerrero@gmail.com>
Thu, 1 Dec 2016 14:35:10 +0000 (15:35 +0100)
src/workbench.lua

index 1e89c3cb4603a2eda00d380abedb03180735c87e..c64f4eec4eda86c38fd08a8f42d32e6644e3456f 100644 (file)
@@ -15,7 +15,7 @@ for node, def in pairs(minetest.registered_nodes) do
           not def.allow_metadata_inventory_take and
           not (def.groups.not_in_creative_inventory == 1) and
           not def.groups.wool and
-          not def.tiles[1]:find("default_mineral") and
+          (def.tiles and not def.tiles[1]:find("default_mineral")) and
           not def.mesecons and
           def.description and
           def.description ~= "" and