This commit is contained in:
parent
4a5f51b137
commit
44e0670852
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ public class Water extends Building{
|
|||
private Sprite water;
|
||||
|
||||
public Water(Vector2i pos, Player p, int size) {
|
||||
super(size, pos, p, size%Map.POS_SIZE);
|
||||
super(Integer.MAX_VALUE, pos, p, size%Map.POS_SIZE);
|
||||
water = new Sprite("Water",img[(int)(Math.random()*img.length)]);
|
||||
water.setSize(new Vector2f(size, size));
|
||||
getNode().add(water);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue