From 4e75d3d13ce4b8d476a667b42cf8150a5913d5c5 Mon Sep 17 00:00:00 2001 From: Wormbo Date: Tue, 2 Jan 2024 17:19:22 +0100 Subject: [PATCH] Nerf placing down cellular blocks via Create means (#4532) Block entity NBT is ignored when a cellular block is placed by a non-OP player or by the various automated ways the Create mod has to offer. That means cellular blocks placed in those ways always start at age zero. --- .../common/block/block_entity/CellularBlockEntity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Xplat/src/main/java/vazkii/botania/common/block/block_entity/CellularBlockEntity.java b/Xplat/src/main/java/vazkii/botania/common/block/block_entity/CellularBlockEntity.java index 9c8d033ceb..9aafc38564 100644 --- a/Xplat/src/main/java/vazkii/botania/common/block/block_entity/CellularBlockEntity.java +++ b/Xplat/src/main/java/vazkii/botania/common/block/block_entity/CellularBlockEntity.java @@ -101,4 +101,9 @@ public void readPacketNBT(CompoundTag cmp) { } } + @Override + public boolean onlyOpCanSetNbt() { + // targeting Create here, sorry about any instances of https://xkcd.com/1172/ + return true; + } }