summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlockMen <nmuelll@web.de>2015-04-13 17:34:10 +0200
committerBlockMen <nmuelll@web.de>2015-04-13 17:34:10 +0200
commita803879c1e125a16bfb6d8e777a1524e1cfc42a2 (patch)
treefc991f578ffe40771b56c3f5392be2405b9e0564
parent608ba472cdc34d46338331ff0ea18d58c0eb65fd (diff)
Fix crash caused by animated nodes
-rw-r--r--itemwheel.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/itemwheel.lua b/itemwheel.lua
index 3db86eb..2e98241 100644
--- a/itemwheel.lua
+++ b/itemwheel.lua
@@ -55,7 +55,7 @@ local function update_wheel(player)
-- get the images
local def = minetest.registered_items[m]
if def then
- if def.tiles then
+ if def.tiles and (def.tiles[1] and not def.tiles[1].name) then
image = minetest.inventorycube(def.tiles[1], def.tiles[6] or def.tiles[3] or def.tiles[1], def.tiles[3] or def.tiles[1])
need_scale = true
end