From ce64554c8648f57e9d920a2415026a8460dc5a06 Mon Sep 17 00:00:00 2001 From: YoungOnion <39562198+YoungOnionMC@users.noreply.github.com> Date: Mon, 30 Dec 2024 21:12:43 -0700 Subject: [PATCH] fix npe --- .../common/machine/multiblock/part/RotorHolderPartMachine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/part/RotorHolderPartMachine.java b/src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/part/RotorHolderPartMachine.java index e79ce47792..5994a9a3fd 100644 --- a/src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/part/RotorHolderPartMachine.java +++ b/src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/part/RotorHolderPartMachine.java @@ -131,7 +131,7 @@ private void onRotorInventoryChanged() { @Override public boolean hasRotor() { - return rotorColor != 0; + return inventory.getStackInSlot(0) != ItemStack.EMPTY; } protected void updateRotorSubscription() {