From dbbebbc11b01cf9a61b434ae23c1c75b6b733d63 Mon Sep 17 00:00:00 2001 From: "Weston Rye (Demod)" Date: Wed, 20 Dec 2017 22:19:07 -0500 Subject: [PATCH] Little hack to get concrete rendering again... --- .../src/com/demod/fbsr/TileRendererFactory.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/FactorioBlueprintStringRenderer/src/com/demod/fbsr/TileRendererFactory.java b/FactorioBlueprintStringRenderer/src/com/demod/fbsr/TileRendererFactory.java index 9564b65..fe6fa81 100644 --- a/FactorioBlueprintStringRenderer/src/com/demod/fbsr/TileRendererFactory.java +++ b/FactorioBlueprintStringRenderer/src/com/demod/fbsr/TileRendererFactory.java @@ -82,7 +82,10 @@ public class TileRendererFactory { public void createRenderers(Consumer register, WorldMap map, DataTable dataTable, BlueprintTile tile, TilePrototype prototype) { - LuaValue sheetLua = prototype.lua().get("variants").get("main").get(1); + LuaValue sheetLua = prototype.lua().get("variants").get("material_background"); + if (sheetLua.isnil()) { + sheetLua = prototype.lua().get("variants").get("main").get(1); + } Sprite sprite = new Sprite(); sprite.bounds = new Rectangle2D.Double(-0.5, -0.5, 1.0, 1.0); sprite.image = FactorioData.getModImage(sheetLua.get("picture").tojstring());