Skip to content

Commit

Permalink
Fix the rotor holder renderer crashing due to syncing of held item (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
omergunr100 authored Feb 12, 2025
1 parent 313d860 commit 3bff259
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ public void renderMachine(List<BakedQuad> quads, MachineDefinition definition, @
modelState, -101, 0, true, false));
quads.add(StaticFaceBakery.bakeFace(aabb, modelFacing, ModelFactory.getBlockSprite(BASE_BG),
modelState, -101, 0, true, false));
if (rotorHolderMachine.hasRotor()) {
Material mat = TurbineRotorBehaviour.getBehaviour(rotorHolderMachine.getRotorStack())
.getPartMaterial(rotorHolderMachine.getRotorStack());
var rotorBehaviour = TurbineRotorBehaviour.getBehaviour(rotorHolderMachine.getRotorStack());
if (rotorBehaviour != null) {
Material mat = rotorBehaviour.getPartMaterial(rotorHolderMachine.getRotorStack());
boolean emissive = mat.hasProperty(PropertyKey.ORE) &&
mat.getProperty(PropertyKey.ORE).isEmissive();
if (rotorHolderMachine.isRotorSpinning()) {
Expand Down

0 comments on commit 3bff259

Please sign in to comment.