*This should probably also have nbt

This commit is contained in:
Jesse Boyd 2017-01-09 03:41:00 +11:00
parent ffd3275904
commit 22c89ce33a
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 22 additions and 1 deletions

View File

@ -241,7 +241,27 @@ public class CuboidClipboard {
case 29: case 29:
case 33: case 33:
case 151: case 151:
case 178: { case 178:
case 209:
case 210:
case 211:
case 255:
case 219:
case 220:
case 221:
case 222:
case 223:
case 224:
case 225:
case 226:
case 227:
case 228:
case 229:
case 230:
case 231:
case 232:
case 233:
case 234: {
if (block.hasNbtData()) { if (block.hasNbtData()) {
nbtMap.put(new IntegerTrio(x, y, z), block.getNbtData()); nbtMap.put(new IntegerTrio(x, y, z), block.getNbtData());
} }

View File

@ -327,6 +327,7 @@ public class DefaultBlockParser extends InputParser<BaseBlock> {
text[2] = blockAndExtraData.length > 3 ? blockAndExtraData[3] : ""; text[2] = blockAndExtraData.length > 3 ? blockAndExtraData[3] : "";
text[3] = blockAndExtraData.length > 4 ? blockAndExtraData[4] : ""; text[3] = blockAndExtraData.length > 4 ? blockAndExtraData[4] : "";
return new SignBlock(blockType.getID(), data, text); return new SignBlock(blockType.getID(), data, text);
case END_GATEWAY:
case END_PORTAL: case END_PORTAL:
return new BaseBlock(blockId, data, new CompoundTag(new HashMap<String, Tag>())); return new BaseBlock(blockId, data, new CompoundTag(new HashMap<String, Tag>()));
case MOB_SPAWNER: case MOB_SPAWNER: