Slight improvements to editor rendering / Renamed blockpart -> part

This commit is contained in:
Anuken
2019-01-23 08:51:21 -05:00
parent e9e2cd614d
commit c3883cdad0
11 changed files with 26 additions and 20 deletions

View File

@@ -48,7 +48,7 @@ public class MapTileData{
read(marker);
//strip blockparts from map data, as they can be invalid
if(marker.wall == Blocks.blockpart.id){
if(marker.wall == Blocks.part.id){
marker.wall = Blocks.air.id;
}
@@ -72,7 +72,7 @@ public class MapTileData{
int worldy = dy + offsety + y;
if(Structs.inBounds(worldx, worldy, width, height) && !(dx + offsetx == 0 && dy + offsety == 0)){
write(worldx, worldy, DataPosition.wall, Blocks.blockpart.id);
write(worldx, worldy, DataPosition.wall, Blocks.part.id);
write(worldx, worldy, DataPosition.link, Pack.byteByte((byte) (dx + offsetx + 8), (byte) (dy + offsety + 8)));
}
}

View File

@@ -64,7 +64,7 @@ public class MapGenerator extends Generator{
marker.wall = 0;
}
tiles[x][y] = new Tile(x, y, marker.floor, marker.wall == Blocks.blockpart.id ? 0 : marker.wall, marker.rotation, marker.team);
tiles[x][y] = new Tile(x, y, marker.floor, marker.wall == Blocks.part.id ? 0 : marker.wall, marker.rotation, marker.team);
}
}