This commit is contained in:
Anuken
2019-02-07 10:45:49 -05:00
parent ec2ec59be0
commit 5a7e5450dc
2 changed files with 2 additions and 7 deletions

View File

@@ -71,12 +71,7 @@ public class MapIO{
LegacyBlock block = LegacyColorMapper.get(color);
data.write(x, y, DataPosition.floor, block.floor.id);
data.write(x, y, DataPosition.elevation, (byte)0);
//place spawn
if(color == Color.rgba8888(Color.RED)){
data.write(x, y, DataPosition.wall, Blocks.spawn.id);
}
data.write(x, y, DataPosition.wall, block.wall.id);
//place core
if(color == Color.rgba8888(Color.GREEN)){

View File

@@ -20,7 +20,7 @@ public class LegacyColorMapper implements ContentList{
public void load(){
defaultValue = new LegacyBlock(Blocks.stone, Blocks.air);
map("ff0000", Blocks.stainedStone);
map("ff0000", Blocks.stainedStone, Blocks.spawn);
map("00ff00", Blocks.stone);
map("323232", Blocks.stone);
map("646464", Blocks.stone, Blocks.rocks);