cookie compatible(should work)
This commit is contained in:
parent
de7e52db74
commit
85685e2eb8
1 changed files with 13 additions and 6 deletions
|
@ -4,6 +4,7 @@ import com.google.gson.JsonObject;
|
||||||
import com.google.gson.JsonParser;
|
import com.google.gson.JsonParser;
|
||||||
import me.night0721.lilase.Lilase;
|
import me.night0721.lilase.Lilase;
|
||||||
import me.night0721.lilase.events.SniperFlipperEvents;
|
import me.night0721.lilase.events.SniperFlipperEvents;
|
||||||
|
import me.night0721.lilase.player.EffectState;
|
||||||
import me.night0721.lilase.player.Rotation;
|
import me.night0721.lilase.player.Rotation;
|
||||||
import me.night0721.lilase.utils.*;
|
import me.night0721.lilase.utils.*;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
|
@ -11,7 +12,10 @@ import net.minecraft.entity.item.EntityArmorStand;
|
||||||
import net.minecraft.util.StringUtils;
|
import net.minecraft.util.StringUtils;
|
||||||
|
|
||||||
import javax.net.ssl.HttpsURLConnection;
|
import javax.net.ssl.HttpsURLConnection;
|
||||||
import java.io.*;
|
import java.io.BufferedReader;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStreamReader;
|
||||||
|
import java.io.OutputStreamWriter;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
|
||||||
|
|
||||||
|
@ -51,8 +55,11 @@ public class Flipper {
|
||||||
Utils.sendMessage("Flipper is running, stopping, will resume when flipper is done");
|
Utils.sendMessage("Flipper is running, stopping, will resume when flipper is done");
|
||||||
if (Lilase.sniper.getOpen()) Lilase.sniper.toggleAuction();
|
if (Lilase.sniper.getOpen()) Lilase.sniper.toggleAuction();
|
||||||
UngrabUtils.ungrabMouse();
|
UngrabUtils.ungrabMouse();
|
||||||
|
Utils.checkFooter();
|
||||||
|
if (Utils.cookie != EffectState.ON) {
|
||||||
Utils.sendServerMessage("/hub");
|
Utils.sendServerMessage("/hub");
|
||||||
state = FlipperState.WALKING_TO_FIRST_POINT;
|
state = FlipperState.WALKING_TO_FIRST_POINT;
|
||||||
|
} else state = FlipperState.BUYING;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void switchStates() {
|
public void switchStates() {
|
||||||
|
@ -89,7 +96,7 @@ public class Flipper {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case BUYING:
|
case BUYING:
|
||||||
if (Lilase.mc.currentScreen == null && buyWait.passed()) {
|
if (Utils.cookie != EffectState.ON && Lilase.mc.currentScreen == null && buyWait.passed()) {
|
||||||
final Entity auctionMaster = getAuctionMaster();
|
final Entity auctionMaster = getAuctionMaster();
|
||||||
if (auctionMaster == null) {
|
if (auctionMaster == null) {
|
||||||
Utils.debugLog("[Flipper] Cannot find shop NPC, retrying");
|
Utils.debugLog("[Flipper] Cannot find shop NPC, retrying");
|
||||||
|
|
Loading…
Reference in a new issue