Some minor bits
This commit is contained in:
parent
593d889468
commit
b1041e19d6
2 changed files with 6 additions and 5 deletions
|
@ -227,8 +227,7 @@ public final class PowerProvider {
|
|||
if (boundsCheck) {
|
||||
if (quantity < minEnergyReceived) {
|
||||
quantity = minEnergyReceived;
|
||||
}
|
||||
if (quantity > maxEnergyReceived) {
|
||||
} else if (quantity > maxEnergyReceived) {
|
||||
quantity = maxEnergyReceived;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,9 +30,11 @@ public class TileEngineLegacy extends TileEngine {
|
|||
public void updateEntity() {
|
||||
worldObj.removeBlockTileEntity(xCoord, yCoord, zCoord);
|
||||
TileEntity newTile = worldObj.getBlockTileEntity(xCoord, yCoord, zCoord);
|
||||
newTile.readFromNBT(nbt);
|
||||
sendNetworkUpdate();
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
if (newTile instanceof TileEngine) {
|
||||
newTile.readFromNBT(nbt);
|
||||
sendNetworkUpdate();
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue