Fixed IDSU not charging items
This commit is contained in:
parent
350d3589c9
commit
1177b693f7
1 changed files with 8 additions and 0 deletions
|
@ -83,6 +83,14 @@ public class TileInterdimensionalSU extends TileEnergyStorage implements IContai
|
|||
}
|
||||
return extract;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canUseEnergy(double input) {
|
||||
if (ownerUdid == null || ownerUdid.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
return input <= IDSUManager.getData(world).getStoredPower();
|
||||
}
|
||||
|
||||
public void readFromNBT(NBTTagCompound nbttagcompound) {
|
||||
super.readFromNBT(nbttagcompound);
|
||||
|
|
Loading…
Reference in a new issue