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:
@@ -7,6 +7,7 @@
|
|||||||
- Shortened crafting text for the Russion translation to fix Grid overlays (yaroslav4167)
|
- Shortened crafting text for the Russion translation to fix Grid overlays (yaroslav4167)
|
||||||
- Fixed JEI hotkeys not working on fluid filter slots (raoulvdberge)
|
- Fixed JEI hotkeys not working on fluid filter slots (raoulvdberge)
|
||||||
- Fixed crash when opening Crafter Manager with FTB Quests installed (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
|
### 1.6.14
|
||||||
- Fixed server crash (raoulvdberge)
|
- Fixed server crash (raoulvdberge)
|
||||||
|
@@ -37,7 +37,12 @@ public class BakedModelPattern extends BakedModelDelegate {
|
|||||||
CraftingPattern pattern = ItemPattern.getPatternFromCache(world, stack);
|
CraftingPattern pattern = ItemPattern.getPatternFromCache(world, stack);
|
||||||
|
|
||||||
if (canDisplayOutput(stack, pattern)) {
|
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);
|
return super.handleItemState(originalModel, stack, world, entity);
|
||||||
|
Reference in New Issue
Block a user