Water event should not be spamming messages

Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com>
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2, Sig, Sigo 2 years ago committed by GitHub
parent fac19d6b9a
commit f03135ad81
  1. BIN
      bin/RabiClone.jar
  2. 4
      src/sig/events/WaterEvent.java

Binary file not shown.

@ -16,10 +16,10 @@ public class WaterEvent implements Event{
char val2=RabiClone.CURRENT_MAP.getMap().getDataTileValue(x/Tile.TILE_WIDTH, y/Tile.TILE_HEIGHT+1); char val2=RabiClone.CURRENT_MAP.getMap().getDataTileValue(x/Tile.TILE_WIDTH, y/Tile.TILE_HEIGHT+1);
if (val1!=Character.MAX_VALUE) { if (val1!=Character.MAX_VALUE) {
RabiClone.CURRENT_MAP.getMap().setWaterLevel(val1); RabiClone.CURRENT_MAP.getMap().setWaterLevel(val1);
System.out.println("Water level set to "+(int)RabiClone.CURRENT_MAP.getMap().getWaterLevel()); //System.out.println("Water level set to "+(int)RabiClone.CURRENT_MAP.getMap().getWaterLevel());
} else { } else {
RabiClone.CURRENT_MAP.getMap().setWaterLevel(val2); RabiClone.CURRENT_MAP.getMap().setWaterLevel(val2);
System.out.println("Water level set to "+(int)RabiClone.CURRENT_MAP.getMap().getWaterLevel()); //System.out.println("Water level set to "+(int)RabiClone.CURRENT_MAP.getMap().getWaterLevel());
} }
return true; return true;
} }

Loading…
Cancel
Save