diff --git a/maps/world1.map b/maps/world1.map index c5a0c4e..acab898 100644 Binary files a/maps/world1.map and b/maps/world1.map differ diff --git a/src/sig/map/Map.java b/src/sig/map/Map.java index 10388cd..492d63e 100644 --- a/src/sig/map/Map.java +++ b/src/sig/map/Map.java @@ -114,14 +114,18 @@ public class Map { public void ModifyTile(int x,int y,Tile t) { Tile prevTile = Tile.values()[tiles[y*Map.MAP_WIDTH+x]]; - boolean prevIsCollisionTile=prevTile.getCollision()==CollisionType.SOLID; - boolean newIsCollisionTile=t.getCollision()==CollisionType.SOLID; - if (prevIsCollisionTile!=newIsCollisionTile) { + if (prevTile!=t) { + byte[] tilesheet = Sprite.TILE_SHEET.getBi_array(); + boolean setSolid = t.getCollision()==CollisionType.SOLID; for (int yy=0;yy