Code cleanup

This commit is contained in:
LemADEC 2015-10-31 12:26:16 +01:00
parent 8d2fcdca67
commit af212aed66
3 changed files with 6 additions and 6 deletions

View file

@ -38,6 +38,7 @@ public class TileEntityMonitor extends TileEntityAbstractInterfaced {
packetSendTicks = PACKET_SEND_INTERVAL_TICKS;
PacketHandler.sendFreqPacket(worldObj.provider.dimensionId, xCoord, yCoord, zCoord, videoChannel);
}
return;
}
}

View file

@ -124,8 +124,7 @@ public class LivingHandler {
int airTicks = breathHelmet.ticksPerCanDamage();
if (breathHelmet.canBreath(player)) {
hasHelmet = true;
if (air == null) {// new player in space =>
// grace period
if (air == null) {// new player in space => grace period
player_airTank.put(playerName, airTicks);
} else if (air <= 1) {
if (breathHelmet.removeAir(player)) {

View file

@ -31,9 +31,9 @@ public class ItemAirCanisterFull extends Item implements IAirCanister {
@Override
public ItemStack emptyDrop(ItemStack is) {
return WarpDrive.itemComponent.getISNoCache(1, 8);
}
return WarpDrive.itemComponent.getISNoCache(1, 8);
}
@Override
public ItemStack fullDrop(ItemStack can) {
return new ItemStack(WarpDrive.itemAirCanisterFull,1);
@ -46,7 +46,7 @@ public class ItemAirCanisterFull extends Item implements IAirCanister {
}
return false;
}
@Override
public boolean containsAir(ItemStack can) {
return true;