aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBlack Hole <[email protected]>2016-11-13 20:20:14 -0600
committerZach Brown <[email protected]>2016-11-13 20:21:37 -0600
commit6c1880847fd1695b567b77c4383322a7d00a23f9 (patch)
tree4d2fdefa368064193c2e807eb4b7956fd09f6908
parentbd503d35b044c311e77a92e86668d14f5d3db39f (diff)
downloadPaper-6c1880847fd1695b567b77c4383322a7d00a23f9.tar.gz
Paper-6c1880847fd1695b567b77c4383322a7d00a23f9.zip
@Z750 There are other command block types
Blocks.dc and .dd (don't know why they ain't renamed yet). cc GH-478
-rw-r--r--Spigot-Server-Patches/0182-Filter-bad-data-from-ArmorStand-and-SpawnEgg-items.patch10
1 files changed, 6 insertions, 4 deletions
diff --git a/Spigot-Server-Patches/0182-Filter-bad-data-from-ArmorStand-and-SpawnEgg-items.patch b/Spigot-Server-Patches/0182-Filter-bad-data-from-ArmorStand-and-SpawnEgg-items.patch
index de83f293ad..91b069b109 100644
--- a/Spigot-Server-Patches/0182-Filter-bad-data-from-ArmorStand-and-SpawnEgg-items.patch
+++ b/Spigot-Server-Patches/0182-Filter-bad-data-from-ArmorStand-and-SpawnEgg-items.patch
@@ -1,4 +1,4 @@
-From 27f801bd116e4387e6b7b1696b23adf140940e4a Mon Sep 17 00:00:00 2001
+From 2693dcda742dac4a8ffd686a0cd52fddd36c5449 Mon Sep 17 00:00:00 2001
From: Zach Brown <[email protected]>
Date: Sat, 12 Nov 2016 23:25:22 -0600
Subject: [PATCH] Filter bad data from ArmorStand and SpawnEgg items
@@ -22,15 +22,17 @@ index 9d361cb..651f23e 100644
+ }
}
diff --git a/src/main/java/net/minecraft/server/EntityFallingBlock.java b/src/main/java/net/minecraft/server/EntityFallingBlock.java
-index dcfdd31..f62fdde 100644
+index dcfdd31..abc4b5c 100644
--- a/src/main/java/net/minecraft/server/EntityFallingBlock.java
+++ b/src/main/java/net/minecraft/server/EntityFallingBlock.java
-@@ -250,6 +250,12 @@ public class EntityFallingBlock extends Entity {
+@@ -250,6 +250,14 @@ public class EntityFallingBlock extends Entity {
this.block = Block.getById(nbttagcompound.getByte("Tile") & 255).fromLegacyData(i);
}
+ // 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