From 420501af89a211eb2447e1262a5f32185d28ef08 Mon Sep 17 00:00:00 2001 From: grimmauld Date: Wed, 21 Oct 2020 01:03:27 +0200 Subject: [PATCH] Fix Server crash on chromatic compound conversion --- .../create/content/curiosities/ChromaticCompoundItem.java | 2 +- src/main/resources/META-INF/accesstransformer.cfg | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/content/curiosities/ChromaticCompoundItem.java b/src/main/java/com/simibubi/create/content/curiosities/ChromaticCompoundItem.java index 3213a7964..afe7c9a87 100644 --- a/src/main/java/com/simibubi/create/content/curiosities/ChromaticCompoundItem.java +++ b/src/main/java/com/simibubi/create/content/curiosities/ChromaticCompoundItem.java @@ -135,7 +135,7 @@ public class ChromaticCompoundItem extends Item { BeaconTileEntity bte = (BeaconTileEntity) te; - if (!bte.getBeamSegments().isEmpty()) isOverBeacon = true; + if (bte.getLevels() != 0 && !bte.beamSegments.isEmpty()) isOverBeacon = true; break; } diff --git a/src/main/resources/META-INF/accesstransformer.cfg b/src/main/resources/META-INF/accesstransformer.cfg index 2069e9221..b8f87e003 100644 --- a/src/main/resources/META-INF/accesstransformer.cfg +++ b/src/main/resources/META-INF/accesstransformer.cfg @@ -17,3 +17,6 @@ public net.minecraft.world.chunk.ChunkStatus$ILoadingWorker # PotionBrewing public net.minecraft.potion.PotionBrewing field_185215_c # POTION_ITEMS + +# Beacon +public net.minecraft.tileentity.BeaconTileEntity field_174909_f # beamSegments