Water event should not be spamming messages
Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com> Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
fac19d6b9a
commit
f03135ad81
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);
|
||||
if (val1!=Character.MAX_VALUE) {
|
||||
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 {
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user