Wall fix
This commit is contained in:
@@ -71,12 +71,7 @@ public class MapIO{
|
|||||||
LegacyBlock block = LegacyColorMapper.get(color);
|
LegacyBlock block = LegacyColorMapper.get(color);
|
||||||
|
|
||||||
data.write(x, y, DataPosition.floor, block.floor.id);
|
data.write(x, y, DataPosition.floor, block.floor.id);
|
||||||
data.write(x, y, DataPosition.elevation, (byte)0);
|
data.write(x, y, DataPosition.wall, block.wall.id);
|
||||||
|
|
||||||
//place spawn
|
|
||||||
if(color == Color.rgba8888(Color.RED)){
|
|
||||||
data.write(x, y, DataPosition.wall, Blocks.spawn.id);
|
|
||||||
}
|
|
||||||
|
|
||||||
//place core
|
//place core
|
||||||
if(color == Color.rgba8888(Color.GREEN)){
|
if(color == Color.rgba8888(Color.GREEN)){
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ public class LegacyColorMapper implements ContentList{
|
|||||||
public void load(){
|
public void load(){
|
||||||
defaultValue = new LegacyBlock(Blocks.stone, Blocks.air);
|
defaultValue = new LegacyBlock(Blocks.stone, Blocks.air);
|
||||||
|
|
||||||
map("ff0000", Blocks.stainedStone);
|
map("ff0000", Blocks.stainedStone, Blocks.spawn);
|
||||||
map("00ff00", Blocks.stone);
|
map("00ff00", Blocks.stone);
|
||||||
map("323232", Blocks.stone);
|
map("323232", Blocks.stone);
|
||||||
map("646464", Blocks.stone, Blocks.rocks);
|
map("646464", Blocks.stone, Blocks.rocks);
|
||||||
|
|||||||
Reference in New Issue
Block a user