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
|
|
|
|
Subject: [PATCH] Filter bad tile entity nbt data from falling blocks
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/item/FallingBlockEntity.java b/src/main/java/net/minecraft/world/entity/item/FallingBlockEntity.java
|
2023-09-21 22:35:39 +02:00
|
|
|
index 90f52ed06b4493610f65c8a82d6a3a3b32fef1a7..b8c8b10656e4151c8c19b8cecc3bc7502dd57d3d 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
|
2023-07-04 10:22:56 +02:00
|
|
|
@@ -334,7 +334,7 @@ public class FallingBlockEntity extends Entity {
|
2022-12-28 03:59:15 +01:00
|
|
|
this.dropItem = nbt.getBoolean("DropItem");
|
|
|
|
}
|
|
|
|
|
|
|
|
- if (nbt.contains("TileEntityData", 10)) {
|
2023-06-08 00:28:06 +02:00
|
|
|
+ if (nbt.contains("TileEntityData", 10) && !(this.level().paperConfig().entities.spawning.filterBadTileEntityNbtFromFallingBlocks && this.blockState.getBlock() instanceof net.minecraft.world.level.block.GameMasterBlock)) {
|
2022-12-28 03:59:15 +01:00
|
|
|
this.blockData = nbt.getCompound("TileEntityData");
|
|
|
|
}
|
|
|
|
|