mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-20 14:32:26 +01:00
@Z750 There are other command block types
Blocks.dc and .dd (don't know why they ain't renamed yet). cc GH-478
This commit is contained in:
parent
6b146ebec2
commit
502ade5e74
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user