Change ShulkerBoxes to EnderChests to fix breaking/picking it up

This commit is contained in:
Matsv 2017-06-13 15:38:16 +02:00
parent a47e845847
commit 354660a374
No known key found for this signature in database
GPG Key ID: 97CEC2A2EA31350F

View File

@ -390,11 +390,11 @@ public class BlockItemPackets1_11 extends BlockItemRewriter<Protocol1_10To1_11>
@Override
protected void registerRewrites() {
// ShulkerBoxes to chests
// ShulkerBoxes to EnderChest
for (int i = 219; i < 235; i++)
rewrite(i)
.repItem(new Item((short) 54, (byte) 1, (short) 0, getNamedTag("1.11 " + BlockColors.get(i - 219) + " Shulker Box")))
.repBlock(new Block(54, 1))
.repItem(new Item((short) 130, (byte) 1, (short) 0, getNamedTag("1.11 " + BlockColors.get(i - 219) + " Shulker Box")))
.repBlock(new Block(130, 1))
.blockEntityHandler((block, tag) -> {
tag.remove("id");
tag.put(new StringTag("id", "minecraft:chest"));