From 4af98b220c4cf4d4a0596cff79b7eeb61535ded0 Mon Sep 17 00:00:00 2001 From: Mats Date: Wed, 22 Jun 2016 22:37:53 +0200 Subject: [PATCH] Fix piston tile entity crash (#443) --- .../protocols/protocol1_9_1_2to1_9_3_4/BlockEntity.java | 1 - .../protocols/protocol1_9_3to1_9_1_2/FakeTileEntity.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9_1_2to1_9_3_4/BlockEntity.java b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9_1_2to1_9_3_4/BlockEntity.java index e4c674930..da8d2f67e 100644 --- a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9_1_2to1_9_3_4/BlockEntity.java +++ b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9_1_2to1_9_3_4/BlockEntity.java @@ -45,7 +45,6 @@ public class BlockEntity { if (newId == -1) continue; - int x = (int) tag.get("x").getValue(); int y = (int) tag.get("y").getValue(); int z = (int) tag.get("z").getValue(); diff --git a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9_3to1_9_1_2/FakeTileEntity.java b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9_3to1_9_1_2/FakeTileEntity.java index 682542994..23324a01a 100644 --- a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9_3to1_9_1_2/FakeTileEntity.java +++ b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9_3to1_9_1_2/FakeTileEntity.java @@ -27,7 +27,7 @@ public class FakeTileEntity { register(Arrays.asList(Material.SIGN_POST, Material.WALL_SIGN), "Sign"); register(Material.MOB_SPAWNER, "MobSpawner"); register(Material.NOTE_BLOCK, "Music"); - register(Material.PISTON_BASE, "Piston"); + register(Arrays.asList(Material.PISTON_BASE, Material.PISTON_EXTENSION, Material.PISTON_STICKY_BASE, Material.PISTON_MOVING_PIECE), "Piston"); register(Arrays.asList(Material.BREWING_STAND, Material.CAULDRON), "Cauldron"); register(Material.ENCHANTMENT_TABLE, "EnchantTable"); register(Arrays.asList(Material.ENDER_PORTAL, Material.ENDER_PORTAL_FRAME), "Airportal");