Skip to content

Commit

Permalink
chore: Finished renaming last local vars everywhere; complete!
Browse files Browse the repository at this point in the history
  • Loading branch information
Pazaz committed Jan 4, 2024
1 parent e603e3f commit 0c60211
Show file tree
Hide file tree
Showing 3 changed files with 516 additions and 445 deletions.
32 changes: 16 additions & 16 deletions client/src/main/java/client.java
Original file line number Diff line number Diff line change
Expand Up @@ -8824,35 +8824,35 @@ private void sortObjStacks(@OriginalArg(0) int x, @OriginalArg(1) int z) {

objStacks.pushFront(topObj);

@Pc(65) int middleObjId = -1;
int bottomObjId = -1;
@Pc(69) int middleObjCount = 0;
@Pc(71) int bottomObjCount = 0;
@Pc(65) int bottomObjId = -1;
int middleObjId = -1;
@Pc(69) int bottomObjCount = 0;
@Pc(71) int middleObjCount = 0;
for (ObjStackEntity obj = (ObjStackEntity) objStacks.peekFront(); obj != null; obj = (ObjStackEntity) objStacks.prev()) {
if (obj.index != topObj.index && middleObjId == -1) {
middleObjId = obj.index;
middleObjCount = obj.count;
}

if (obj.index != topObj.index && obj.index != middleObjId && bottomObjId == -1) {
if (obj.index != topObj.index && bottomObjId == -1) {
bottomObjId = obj.index;
bottomObjCount = obj.count;
}
}

@Pc(118) Model middleObj = null;
if (middleObjId != -1) {
middleObj = ObjType.get(middleObjId).getInterfaceModel(middleObjCount);
if (obj.index != topObj.index && obj.index != bottomObjId && middleObjId == -1) {
middleObjId = obj.index;
middleObjCount = obj.count;
}
}

@Pc(128) Model bottomObj = null;
@Pc(118) Model bottomObj = null;
if (bottomObjId != -1) {
bottomObj = ObjType.get(bottomObjId).getInterfaceModel(bottomObjCount);
}

@Pc(128) Model middleObj = null;
if (middleObjId != -1) {
middleObj = ObjType.get(middleObjId).getInterfaceModel(middleObjCount);
}

@Pc(144) int bitset = x + (z << 7) + 1610612736;
@Pc(148) ObjType type = ObjType.get(topObj.index);
this.scene.addObjStack(type.getInterfaceModel(topObj.count), middleObj, this.getHeightmapY(this.currentLevel, x * 128 + 64, z * 128 + 64), this.currentLevel, bitset, z, x, bottomObj);
this.scene.addObjStack(type.getInterfaceModel(topObj.count), bottomObj, this.getHeightmapY(this.currentLevel, x * 128 + 64, z * 128 + 64), this.currentLevel, bitset, z, x, middleObj);
}

@OriginalMember(owner = "client!client", name = "D", descriptor = "(I)V")
Expand Down
Loading

0 comments on commit 0c60211

Please sign in to comment.