Skip to content

Commit

Permalink
chore(deps): handle changes to xparticle
Browse files Browse the repository at this point in the history
  • Loading branch information
darbyjack committed Jun 20, 2024
1 parent f5ddcab commit 456c4c7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import org.apache.tools.ant.filters.ReplaceTokens

plugins {
id 'org.jetbrains.kotlin.jvm' version '2.0.0'
id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
id 'io.github.goooler.shadow' version '8.1.7' apply false
id "com.github.ben-manes.versions" version "0.51.0"
id "net.kyori.indra" version "3.1.3"
id "net.kyori.indra.publishing" version "3.1.3"
Expand Down Expand Up @@ -32,7 +32,7 @@ allprojects {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"

// Support for materials across all versions
implementation 'com.github.cryptomorin:XSeries:11.0.0'
implementation 'com.github.cryptomorin:XSeries:11.1.0'
}

indra {
Expand All @@ -59,7 +59,7 @@ allprojects {
}
}

apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'io.github.goooler.shadow'

shadowJar {
minimize()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ class VersionHookNew : VersionHook
{

val world = location.world ?: return
val particle = XParticle.of(type.name)
val optionalParticle = XParticle.of(type.name)

if (!optionalParticle.isPresent)
{
return
}

val particle = optionalParticle.get()

if (particle.get().dataType == DustOptions::class.java)
{
Expand Down

0 comments on commit 456c4c7

Please sign in to comment.