Skip to content

Commit

Permalink
Merge pull request #605 from Shynixn/development
Browse files Browse the repository at this point in the history
Merge changes to master --release
  • Loading branch information
Shynixn committed Aug 13, 2024
2 parents 8ff3261 + 05cf7ef commit ba2f9c8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "com.github.shynixn"
version = "9.11.1"
version = "9.12.0"

repositories {
mavenCentral()
Expand Down Expand Up @@ -46,8 +46,8 @@ dependencies {

// Custom dependencies
implementation("com.github.shynixn.shygui:shygui:1.0.0")
implementation("com.github.shynixn.mcutils:common:2024.19")
implementation("com.github.shynixn.mcutils:packet:2024.32")
implementation("com.github.shynixn.mcutils:common:2024.21")
implementation("com.github.shynixn.mcutils:packet:2024.33")
implementation("com.github.shynixn.mcutils:database:2024.2")
implementation("com.github.shynixn.mcutils:pathfinder:2024.3")
implementation("com.github.shynixn.mcutils:guice:2024.2")
Expand Down
13 changes: 9 additions & 4 deletions src/main/java/com/github/shynixn/petblocks/impl/PetImpl.kt
Original file line number Diff line number Diff line change
Expand Up @@ -519,11 +519,16 @@ class PetImpl(
return false
}

val sourceLocation = this.location
location.world = sourceLocation.world
val distanceBetweenLocations = location.distance(sourceLocation)
try {
val sourceLocation = this.location
location.world = sourceLocation.world
val distanceBetweenLocations = location.distance(sourceLocation)

if (distanceBetweenLocations > maxPathfinderDistance) {
if (distanceBetweenLocations > maxPathfinderDistance) {
return false
}
} catch (e: Exception) {
// World references in cross server setups.
return false
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin-legacy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: PetBlocks
version: 9.11.1
version: 9.12.0
author: Shynixn
main: com.github.shynixn.petblocks.PetBlocksPlugin
softdepend: [ PlaceholderAPI, HeadDatabase]
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: PetBlocks
version: 9.11.1
version: 9.12.0
author: Shynixn
main: com.github.shynixn.petblocks.PetBlocksPlugin
softdepend: [ PlaceholderAPI, HeadDatabase]
Expand Down

0 comments on commit ba2f9c8

Please sign in to comment.