GregTech Community Edition items are now banned from rendering on Refined Storage patterns because they are causing crashes. Fixes #2227

This commit is contained in:
raoulvdberge
2019-07-21 14:36:31 +02:00
parent 3408f09213
commit c05b6ec04f
2 changed files with 7 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
- Shortened crafting text for the Russion translation to fix Grid overlays (yaroslav4167)
- Fixed JEI hotkeys not working on fluid filter slots (raoulvdberge)
- Fixed crash when opening Crafter Manager with FTB Quests installed (raoulvdberge)
- GregTech Community Edition items are now banned from rendering on Refined Storage patterns because they are causing crashes (raoulvdberge)
### 1.6.14
- Fixed server crash (raoulvdberge)

View File

@@ -37,7 +37,12 @@ public class BakedModelPattern extends BakedModelDelegate {
CraftingPattern pattern = ItemPattern.getPatternFromCache(world, stack);
if (canDisplayOutput(stack, pattern)) {
return Minecraft.getMinecraft().getRenderItem().getItemModelWithOverrides(pattern.getOutputs().get(0), world, entity);
ItemStack outputToRender = pattern.getOutputs().get(0);
// @Volatile: Gregtech banned for rendering due to issues
if (!"gregtech".equals(outputToRender.getItem().getCreatorModId(outputToRender))) {
return Minecraft.getMinecraft().getRenderItem().getItemModelWithOverrides(outputToRender, world, entity);
}
}
return super.handleItemState(originalModel, stack, world, entity);