Fix crash on moving static model floating flowers with Quark TE pistons

This commit is contained in:
Hubry committed 2019-02-12 20:12:27 +01:00
1 parent d357279ca4
commit 9df180a6a1
1 file changed
+5
@@ -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 {