Small fixes

Fixed Fusion reactor recipe logic & display names for digital chest
This commit is contained in:
TheDarkDnKTv 2021-03-27 11:29:48 +02:00
parent 75294bb35f
commit 1f00832ceb
2 changed files with 13 additions and 11 deletions

View file

@ -580,7 +580,7 @@ public class GT_MetaTileEntity_FusionComputer extends MetaTileEntity implements
GT_MetaTileEntity_FusionComputer machine = (GT_MetaTileEntity_FusionComputer)getMachine();
overclockersCount = base.getOverclockerUpgradeCount();
if (base.isAllowedToWork()) {
if (progressTime > 0) {
int tmp = progressTime;
success = updateRecipeProgress();
@ -589,6 +589,7 @@ public class GT_MetaTileEntity_FusionComputer extends MetaTileEntity implements
}
}
if (base.isAllowedToWork()) {
if (progressTime == 0) {
if (machine.hasInventoryBeenModified() || base.hasWorkJustBeenEnabled() || success || base.getTimer() % 600 == 0 || wasNoEnergy) {
if (machine.getStoredEU() >= machine.getMinimumStoredEU() - 100) {
@ -603,7 +604,7 @@ public class GT_MetaTileEntity_FusionComputer extends MetaTileEntity implements
previousRecipe = null;
}
}
}
} else if (success) stop();
return success;
}
@ -672,6 +673,7 @@ public class GT_MetaTileEntity_FusionComputer extends MetaTileEntity implements
super.stop();
getMachine().getBaseMetaTileEntity().disableWorking();
triggerMachine(false);
previousRecipe = null;
firstStart = true;
}

View file

@ -101,7 +101,7 @@ public class GT_MetaTileEntity_DigitalChest extends MetaTileEntity {
}
}
}
GT_Utility.sendChatToPlayer(aPlayer, new ChatComponentTranslation("metatileentity.GT_Barrel.count_msg", mInventory[0].stackSize, mInventory[0].getUnlocalizedName() + ".name"));
GT_Utility.sendChatToPlayer(aPlayer, new ChatComponentTranslation("metatileentity.GT_Barrel.count_msg", mInventory[0].stackSize, mInventory[0].getDisplayName()));
}
} else {
if(isDigitalChest && GT_OreDictUnificator.isItemStackInstanceOf(tPlayerItem, "craftingQuantumChestUpgrade")) {
@ -134,7 +134,7 @@ public class GT_MetaTileEntity_DigitalChest extends MetaTileEntity {
}
} else {
GT_Utility.sendChatToPlayer(aPlayer, new ChatComponentTranslation("metatileentity.GT_Barrel.count_msg", mInventory[0].stackSize, mInventory[0].getUnlocalizedName() + ".name"));
GT_Utility.sendChatToPlayer(aPlayer, new ChatComponentTranslation("metatileentity.GT_Barrel.count_msg", mInventory[0].stackSize, mInventory[0].getDisplayName()));
}
}