Top ten hotswap engineering oversights

- Fixed reversed frequency display of Redstone Links
This commit is contained in:
simibubi 2021-07-11 01:28:28 +02:00
parent 2821fd7135
commit 4a57b916ff
2 changed files with 3 additions and 3 deletions

View file

@ -28,12 +28,12 @@ public class RedstoneLinkFrequencySlot extends ValueBoxTransform.Dual {
if (facing.getAxis()
.isHorizontal()) {
location = horizontal;
if (!isFirst())
if (isFirst())
location = location.add(0, 5 / 16f, 0);
return rotateHorizontally(state, location);
}
if (!isFirst())
if (isFirst())
location = location.add(0, 0, 5 / 16f);
location = VecHelper.rotateCentered(location, facing == Direction.DOWN ? 180 : 0, Axis.X);
return location;

View file

@ -44,7 +44,7 @@ public class LinkRenderer {
for (boolean first : Iterate.trueAndFalse) {
AxisAlignedBB bb = new AxisAlignedBB(Vector3d.ZERO, Vector3d.ZERO).grow(.25f);
ITextComponent label = first ? freq2 : freq1;
ITextComponent label = first ? freq1 : freq2;
boolean hit = behaviour.testHit(first, target.getHitVec());
ValueBoxTransform transform = first ? behaviour.firstSlot : behaviour.secondSlot;