Some minor bits

This commit is contained in:
CovertJaguar 2013-06-29 03:22:55 -07:00
parent 593d889468
commit b1041e19d6
2 changed files with 6 additions and 5 deletions

View file

@ -227,8 +227,7 @@ public final class PowerProvider {
if (boundsCheck) {
if (quantity < minEnergyReceived) {
quantity = minEnergyReceived;
}
if (quantity > maxEnergyReceived) {
} else if (quantity > maxEnergyReceived) {
quantity = maxEnergyReceived;
}
}

View file

@ -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