From d444ec3a253d6d05071de01cdad737c27bf86ef0 Mon Sep 17 00:00:00 2001 From: RecursivePineapple Date: Sat, 4 Jan 2025 12:55:57 -0500 Subject: [PATCH] fix cover tick rate copying --- .../common/building/GTAnalysisResult.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/recursive_pineapple/matter_manipulator/common/building/GTAnalysisResult.java b/src/main/java/com/recursive_pineapple/matter_manipulator/common/building/GTAnalysisResult.java index b6b32de..85a7d0e 100644 --- a/src/main/java/com/recursive_pineapple/matter_manipulator/common/building/GTAnalysisResult.java +++ b/src/main/java/com/recursive_pineapple/matter_manipulator/common/building/GTAnalysisResult.java @@ -316,6 +316,9 @@ public boolean apply(IBlockApplyContext ctx) { // set the redstone strength gte.setRedstoneOutputStrength(dir, (mStrongRedstone & dir.flag) != 0); + if (expected != null) { + gte.getCoverInfoAtSide(dir).setTickRateAddition(expected.tickRateAddition == null ? 0 : expected.tickRateAddition); + } } // set the custom name @@ -448,9 +451,10 @@ private void installCover(IBlockApplyContext context, IGregTechTileEntity gte, F private void updateCover(IBlockApplyContext context, IGregTechTileEntity gte, ForgeDirection side, CoverData target) { - if (gte.getCoverIDAtSide(side) == target.getCoverID() && gte.getCoverBehaviorAtSideNew(side) - .allowsCopyPasteTool()) { - gte.setCoverDataAtSide(side, target.getCoverData()); + if (gte.getCoverIDAtSide(side) == target.getCoverID()) { + if (gte.getCoverBehaviorAtSideNew(side).allowsCopyPasteTool()) { + gte.setCoverDataAtSide(side, target.getCoverData()); + } } }