From 9df180a6a11e7bc542ea0e400def64d5f5307754 Mon Sep 17 00:00:00 2001 From: Hubry Date: Tue, 12 Feb 2019 20:12:27 +0100 Subject: [PATCH] Fix crash on moving static model floating flowers with Quark TE pistons --- .../vazkii/botania/client/model/FloatingFlowerModel.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/vazkii/botania/client/model/FloatingFlowerModel.java b/src/main/java/vazkii/botania/client/model/FloatingFlowerModel.java index 2aa9b0ec9..25b9f80e5 100644 --- a/src/main/java/vazkii/botania/client/model/FloatingFlowerModel.java +++ b/src/main/java/vazkii/botania/client/model/FloatingFlowerModel.java @@ -105,6 +105,11 @@ public class FloatingFlowerModel implements IBakedModel { private CompositeBakedModel getModel(IFloatingFlower.IslandType islandType, String identifier) { ModelManager modelManager = Minecraft.getMinecraft().getRenderItem().getItemModelMesher().getModelManager(); + if(islandType == null) // This and the next one can be null if obtained from a non-extended state + islandType = IFloatingFlower.IslandType.GRASS; + if(identifier == null) + identifier = ""; + if(CACHE.contains(islandType, identifier)) { return CACHE.get(islandType, identifier); } else {