Slight improvements to editor rendering / Renamed blockpart -> part
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user