mirror of
https://github.com/demodude4u/Factorio-FBSR.git
synced 2024-11-24 08:12:21 +02:00
Little hack to get concrete rendering again...
This commit is contained in:
parent
5c45746712
commit
dbbebbc11b
@ -82,7 +82,10 @@ public class TileRendererFactory {
|
|||||||
|
|
||||||
public void createRenderers(Consumer<Renderer> register, WorldMap map, DataTable dataTable, BlueprintTile tile,
|
public void createRenderers(Consumer<Renderer> register, WorldMap map, DataTable dataTable, BlueprintTile tile,
|
||||||
TilePrototype prototype) {
|
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 sprite = new Sprite();
|
||||||
sprite.bounds = new Rectangle2D.Double(-0.5, -0.5, 1.0, 1.0);
|
sprite.bounds = new Rectangle2D.Double(-0.5, -0.5, 1.0, 1.0);
|
||||||
sprite.image = FactorioData.getModImage(sheetLua.get("picture").tojstring());
|
sprite.image = FactorioData.getModImage(sheetLua.get("picture").tojstring());
|
||||||
|
Loading…
Reference in New Issue
Block a user