Skip to content

Commit

Permalink
Stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aroma1997 committed Mar 2, 2014
1 parent cfd9987 commit 6e25d22
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ private float tickRotor() {
}
rotor.tickRotor(inventoryContent[0], this, worldObj);
if (!rotor.isInfinite() && damageRotor) {
if (inventoryContent[0].getItemDamage() + CompactWindmills.updateTick > inventoryContent[0].getMaxDamage()) {
if ((inventoryContent[0].getItemDamage() + CompactWindmills.updateTick) > inventoryContent[0].getMaxDamage()) {
inventoryContent[0] = null;
}
else {
Expand Down Expand Up @@ -441,4 +441,10 @@ public void openInventory() {
public void closeInventory() {

}

@Override
public void markDirty() {
super.markDirty();
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}
}

0 comments on commit 6e25d22

Please sign in to comment.