]> git.lizzy.rs Git - xdecor.git/commitdiff
Very minor style cleaning
authorJean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>
Fri, 19 Feb 2016 21:24:11 +0000 (22:24 +0100)
committerJean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>
Fri, 19 Feb 2016 22:13:29 +0000 (23:13 +0100)
workbench.lua

index 17396627421c8289eba1cfbb777c80935ba5d3a4..88d7a00401fb65947d8612243f157026bc1d298a 100644 (file)
@@ -228,9 +228,11 @@ for node in pairs(minetest.registered_nodes) do
                end
 
                if def.tiles then
-                       if #def.tiles > 1 and not def.drawtype:find("glass") then
+                       if #def.tiles > 1 and not (def.drawtype:sub(1,5) == "glass") then
                                tiles = def.tiles
-                       else tiles = {def.tiles[1]} end
+                       else
+                               tiles = {def.tiles[1]}
+                       end
                else
                        tiles = {def.tile_images[1]}
                end