Skip to content

Commit 78763f1

Browse files
committed
Another attempt to fix getting stuck in limbo
1 parent 98ebe2e commit 78763f1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ baseGroup=com.jelly.farmhelperv2
44
mcVersion=1.8.9
55
modid=farmhelperv2
66
modName=FarmHelper
7-
version=2.8.12
7+
version=2.8.13-pre1
88
shouldRelease=true

src/main/java/com/jelly/farmhelperv2/failsafe/impl/WorldChangeFailsafe.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public void onTickDetection(TickEvent.ClientTickEvent event) {
6464
if (FailsafeManager.getInstance().triggeredFailsafe.isPresent()
6565
&& FailsafeManager.getInstance().triggeredFailsafe.get().getType() == FailsafeManager.EmergencyType.WORLD_CHANGE_CHECK)
6666
return;
67+
if (FailsafeManager.getInstance().emergencyQueue.contains(this)) return;
6768
if (GameStateHandler.getInstance().getLocation() != GameStateHandler.Location.LIMBO) return;
6869
LogUtils.sendWarning("[Failsafe Debug] You've been kicked to limbo! #2");
6970
FailsafeManager.getInstance().possibleDetection(this);
@@ -142,7 +143,7 @@ public void duringFailsafeTrigger() {
142143
break;
143144
case TAKE_ACTION:
144145
if (GameStateHandler.getInstance().getLocation() == GameStateHandler.Location.TELEPORTING
145-
|| LagDetector.getInstance().isLagging() || GameStateHandler.getInstance().getLocation() == GameStateHandler.Location.UNKNOWN) {
146+
|| GameStateHandler.getInstance().getLocation() == GameStateHandler.Location.UNKNOWN) {
146147
FailsafeManager.getInstance().scheduleDelay(1000);
147148
return;
148149
}

src/main/java/com/jelly/farmhelperv2/handler/GameStateHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public void onTablistUpdate(UpdateTablistEvent event) {
149149
List<String> tabList = new ArrayList<>(event.tablist);
150150

151151
List<String> scoreboardLines = ScoreboardUtils.getScoreboardLines(true);
152-
if (tabList.size() == 1 && PlayerUtils.isInventoryEmpty(mc.thePlayer)) {
152+
if (PlayerUtils.isInventoryEmpty(mc.thePlayer) && scoreboardLines.isEmpty() && mc.thePlayer.experienceLevel == 0 && mc.thePlayer.dimension == 1) {
153153
lastLocation = location;
154154
location = Location.LIMBO;
155155
return;

0 commit comments

Comments
 (0)