2022-12-28 03:59:15 +01:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Zach Brown <zach.brown@destroystokyo.com>
Date: Sat, 12 Nov 2016 23:25:22 -0600
2024-01-22 19:01:10 +01:00
Subject: [PATCH] Filter bad block entity nbt data from falling blocks
2022-12-28 03:59:15 +01:00
diff --git a/src/main/java/net/minecraft/world/entity/item/FallingBlockEntity.java b/src/main/java/net/minecraft/world/entity/item/FallingBlockEntity.java
2024-06-13 19:30:39 +02:00
index c3a16691e8a843c02e0aea6469822cd8869ad593..01ac7bb0ef8ab13e7c4b5b56b768b7c0a642b300 100644
2022-12-28 03:59:15 +01:00
--- a/src/main/java/net/minecraft/world/entity/item/FallingBlockEntity.java
+++ b/src/main/java/net/minecraft/world/entity/item/FallingBlockEntity.java
2024-06-13 19:30:39 +02:00
@@ -340,7 +340,7 @@ public class FallingBlockEntity extends Entity {
2022-12-28 03:59:15 +01:00
this.dropItem = nbt.getBoolean("DropItem");
}
- if (nbt.contains("TileEntityData", 10)) {
2024-01-22 19:01:10 +01:00
+ if (nbt.contains("TileEntityData", 10) && !(this.level().paperConfig().entities.spawning.filterBadTileEntityNbtFromFallingBlocks && this.blockState.getBlock() instanceof net.minecraft.world.level.block.GameMasterBlock)) { // Paper - Filter bad block entity nbt data from falling blocks
2023-12-05 22:34:01 +01:00
this.blockData = nbt.getCompound("TileEntityData").copy();
2022-12-28 03:59:15 +01:00
}