From 502ade5e7450239677e00b48f5f2d6aa4ed9f4e2 Mon Sep 17 00:00:00 2001 From: Black Hole Date: Sun, 13 Nov 2016 20:20:14 -0600 Subject: [PATCH] @Z750 There are other command block types Blocks.dc and .dd (don't know why they ain't renamed yet). cc GH-478 --- .../Filter-bad-data-from-ArmorStand-and-SpawnEgg-items.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/Filter-bad-data-from-ArmorStand-and-SpawnEgg-items.patch b/Spigot-Server-Patches/Filter-bad-data-from-ArmorStand-and-SpawnEgg-items.patch index 7dc39dd3a5..bd87b2464c 100644 --- a/Spigot-Server-Patches/Filter-bad-data-from-ArmorStand-and-SpawnEgg-items.patch +++ b/Spigot-Server-Patches/Filter-bad-data-from-ArmorStand-and-SpawnEgg-items.patch @@ -30,7 +30,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 } + // Paper start - Block FallingBlocks with Command Blocks -+ if (this.world.paperConfig.filterNBTFromSpawnEgg && this.block.getBlock() == Blocks.COMMAND_BLOCK) { ++ // Check mappings on update - dc = "repeating_command_block" - dd = "chain_command_block" ++ final Block b = this.block.getBlock(); ++ if (this.world.paperConfig.filterNBTFromSpawnEgg && (b == Blocks.COMMAND_BLOCK || b == Blocks.dc || b == Blocks.dd)) { + this.block = Blocks.STONE.getBlockData(); + } + // Paper end