mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 15:03:07 +00:00
Logic fix for reading the current task from nbt
getCompoundTag() never returns null, it returns a new empty object instead
This commit is contained in:
1 parent
381ec53bbf
commit
2cf3e979df
2 files changed
+1
-5
No files matched your search
@@ -147,10 +147,6 @@ public class PoweredTask implements IPoweredTask {
|
||||
}
|
||||
|
||||
public static IPoweredTask readFromNBT(NBTTagCompound nbtRoot) {
|
||||
if(nbtRoot == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
IMachineRecipe recipe;
|
||||
|
||||
float usedEnergy = nbtRoot.getFloat(KEY_USED_ENERGY);
|
||||
|
||||
Reference in new issue
Block a user