Skip to content

Commit b069b51

Browse files
committed
Update PlayerUtils.java
1 parent 3080e08 commit b069b51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/jelly/farmhelperv2/util/PlayerUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ public static EnumFacing getHorizontalFacing(float yaw) {
379379

380380
public static void closeScreen() {
381381
if (mc.currentScreen != null && mc.thePlayer != null) {
382-
mc.thePlayer.closeScreen();
382+
mc.addScheduledTask(() -> { mc.thePlayer.closeScreen();});
383383
}
384384
}
385385

0 commit comments

Comments
 (0)