diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-11 10:11:44 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-11 10:11:44 +0100 |
commit | 4696de53c433cb15bb32b336cafb639961855cf6 (patch) | |
tree | b6e7134b5e25b633a37040ce23b39ebb4f91f09c /src/main/java/at | |
parent | 8ee609dbba93a0e2d46b887fa5f605a023dd77f5 (diff) | |
download | skyhanni-4696de53c433cb15bb32b336cafb639961855cf6.tar.gz skyhanni-4696de53c433cb15bb32b336cafb639961855cf6.tar.bz2 skyhanni-4696de53c433cb15bb32b336cafb639961855cf6.zip |
Add checks why burrow test command might not work.
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt index ad9a482bc..16560a103 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt @@ -255,6 +255,15 @@ object GriffinBurrowHelper { return } + if (!isEnabled()) { + if (!config.alwaysDiana) { + LorenzUtils.userError("Enable Always Diana in the config!") + } else { + LorenzUtils.userError("Have an Ancestral Spade in the inventory!") + } + return + } + if (strings.size != 1) { LorenzUtils.userError("/shtestburrow <type>") return @@ -276,7 +285,6 @@ object GriffinBurrowHelper { } } - EntityMovementData.addToTrack(Minecraft.getMinecraft().thePlayer) val location = LocationUtils.playerLocation().roundLocation() particleBurrows = particleBurrows.editCopy { this[location] = type } |