Skip to content

Commit

Permalink
fix cover tick rate copying
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursivePineapple committed Jan 4, 2025
1 parent 7891572 commit d444ec3
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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());
}
}
}

Expand Down

0 comments on commit d444ec3

Please sign in to comment.