Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
fix for getting redstone signal cause vanilla is dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Jun 30, 2024
1 parent c753be7 commit 30802d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public long getRedstoneAtSide(int aSide) {
if (tDelegator instanceof BlockEntityRedstoneWire<?> wire) return connects(side) && wire.connects(side.getOpposite()) ? wire.getRedstoneMinusLoss() : 0;
// Do not accept Redstone coming from any Redstone Sink! (Such as Droppers or Dispensers)
//if (REDSTONE_SINKS.contains(tDelegator.getBlock())) return 0;
int redstoneLevel = level.getSignal(this.getBlockPos().relative(side), side.getOpposite());
int redstoneLevel = level.getSignal(this.getBlockPos().relative(side), side);
return (long) (MAX_RANGE * redstoneLevel) - mLoss;
}

Expand Down

0 comments on commit 30802d3

Please sign in to comment.