Skip to content

Commit

Permalink
Actual FIX ONG FRFR SMH
Browse files Browse the repository at this point in the history
  • Loading branch information
OsamaBeingLagging committed Dec 22, 2023
1 parent 000fea0 commit 20241d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public boolean shouldCheckForFailsafes() {
return false;
}

public void buy(String itemName, int amount){
public void buy(String itemName, int amount) {
this.buy(itemName, amount, 0);
}

Expand Down Expand Up @@ -165,10 +165,9 @@ public void onTick(TickEvent.ClientTickEvent event) {
@SubscribeEvent
public void onChatReceive(ClientChatReceivedEvent event) {
if (event.type != 0 || !this.enabled) return;
String chatMessage = event.message.getUnformattedTextForChat();
if(chatMessage == null) return;
if (event.message == null) return;

String message = StringUtils.stripControlCodes(chatMessage);
String message = StringUtils.stripControlCodes(event.message.getUnformattedTextForChat());
String boughtMessage = String.format("[Bazaar] Bought %dx %s for", this.buyAmount, this.itemToBuy);

if (message.startsWith(boughtMessage) && this.buyState == BuyState.BUY_VERIFY) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,9 @@ public void onTickMainState(TickEvent.ClientTickEvent event) {
@SubscribeEvent
public void onChatReceive(ClientChatReceivedEvent event) {
if (event.type != 0 || !this.enabled) return;
String chatMessage = event.message.getUnformattedTextForChat();
if(chatMessage == null) return;

String message = StringUtils.stripControlCodes(chatMessage);
if (event.message == null) return;

String message = StringUtils.stripControlCodes(event.message.getUnformattedTextForChat());
if (message.startsWith("SPRAYONATOR! Your selected material is now ") && this.sprayState == SprayState.SPRAYONATOR_TYPE_VERIFY) {
log("Sprayonator Material Changed");
String itemName = SPRAYONATOR_ITEM[FarmHelperConfig.autoSprayonatorType];
Expand Down

0 comments on commit 20241d6

Please sign in to comment.