Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
Fix CAL Locking itself (#381)
Browse files Browse the repository at this point in the history
* Fix CAL Locking itself

* Update GT_TileEntity_CircuitAssemblyLine.java

Fix null

* I did the funny

Former-commit-id: 821bfc677d0a1e9ebd073e3441230042b34c8471
  • Loading branch information
LewisSaber authored Dec 20, 2023
1 parent e557ff9 commit a3a6c50
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ) {
@Override
public void loadNBTData(NBTTagCompound aNBT) {
this.type = aNBT.getCompoundTag(IMPRINT_KEY);
this.imprintedItemName = GT_LanguageManager
.getTranslateableItemStackName(ItemStack.loadItemStackFromNBT(this.type));
this.imprintedItemName = this.type == null ? ""
: GT_LanguageManager.getTranslateableItemStackName(ItemStack.loadItemStackFromNBT(this.type));
mode = aNBT.getInteger(RUNNING_MODE_KEY);
length = aNBT.getInteger(LENGTH_KEY);
super.loadNBTData(aNBT);
Expand Down Expand Up @@ -562,7 +562,7 @@ public boolean isInputSeparationEnabled() {

@Override
public boolean isRecipeLockingEnabled() {
return this.imprintedItemName != null && !"".equals(this.imprintedItemName);
return this.mode == 0 && this.imprintedItemName != null && !"".equals(this.imprintedItemName);
}

@Override
Expand Down

0 comments on commit a3a6c50

Please sign in to comment.