Skip to content

Commit

Permalink
Wrong method 💀
Browse files Browse the repository at this point in the history
  • Loading branch information
Mars committed Dec 18, 2022
1 parent 5074503 commit 6207fa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mod.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ main: "me.mars.ModMain2"
description: "Displays all bridge links. Helps with bridge weaving"

#the mod version
version: 1.1.4
version: 1.1.5

#the minimum game build required to run this mod
minGameVersion: 136
Expand Down
3 changes: 1 addition & 2 deletions src/me/mars/ModMain2.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ public static void eventInit() {

// Form for disconnected
int lastConfig = lastConfigs.get(bridge.pos(), -1); //
// if (lastConfig != -1) formSegment(lastConfig);
if (Vars.world.build(lastConfig) instanceof ItemBridgeBuild oldLink) {
// if (oldLink.incoming.contains(bridge.pos())) Log.info("Removing");
oldLink.incoming.removeValue(bridge.pos());
Expand Down Expand Up @@ -318,7 +317,7 @@ public static void formSegment(ItemBridgeBuild bridge) {
if (segHead(bridge) && linkValid(bridge)) {
Segment found = findSeg(bridge.tileX(), bridge.tileY(), Segment.linkDir(bridge));
if (found != null) {
found.update();
updateEnd(found);
} else {
Segment seg = new Segment(bridge);
allSegments.add(seg);
Expand Down

0 comments on commit 6207fa7

Please sign in to comment.