Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Cephetir committed Apr 22, 2022
1 parent 56cad44 commit 21bb008
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ plugins {
id "java"
}

version = "2.9"
version = "2.9.1"
group = "me.cephetir.skyskipped"
archivesBaseName = "SkySkipped"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ package me.cephetir.skyskipped.event.events
import net.minecraft.util.BlockPos
import net.minecraftforge.fml.common.eventhandler.Event

class BlockClickEvent(val pos: BlockPos) : Event()
class BlockClickEvent(val pos: BlockPos?) : Event()
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class FailSafe : Feature() {
@SubscribeEvent
fun onChat(event: ClientChatReceivedEvent) {
if (!called4) return
if (!event.message.unformattedText.stripColor().contains("The Farming Contest is over!")) return
if (!event.message.unformattedText.stripColor().startsWith("[NPC] Jacob: Come see me in Hub to claim your reward!")) return
UChat.chat("§cSkySkipped §f:: §eJacob event ended! Starting macro again...")
if (lastMacro) MacroBuilder.onKey()
else CF4M.INSTANCE.moduleManager.toggle("AutoFarm")
Expand Down Expand Up @@ -306,7 +306,7 @@ class FailSafe : Feature() {
if (!pizza && !cheeto) return
if (Config.failSafeDesyncMode != 1) return

if (lastBlock != null) return
if (lastBlock != null || event.pos == null) return
if (mc.theWorld.getBlockState(event.pos).block is IPlantable)
lastBlock = LastBlock(event.pos, Config.failSafeDesyncTime * 20)
}
Expand Down

0 comments on commit 21bb008

Please sign in to comment.