Skip to content

Commit 456c4c7

Browse files
committed
chore(deps): handle changes to xparticle
1 parent f5ddcab commit 456c4c7

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import org.apache.tools.ant.filters.ReplaceTokens
22

33
plugins {
44
id 'org.jetbrains.kotlin.jvm' version '2.0.0'
5-
id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
5+
id 'io.github.goooler.shadow' version '8.1.7' apply false
66
id "com.github.ben-manes.versions" version "0.51.0"
77
id "net.kyori.indra" version "3.1.3"
88
id "net.kyori.indra.publishing" version "3.1.3"
@@ -32,7 +32,7 @@ allprojects {
3232
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
3333

3434
// Support for materials across all versions
35-
implementation 'com.github.cryptomorin:XSeries:11.0.0'
35+
implementation 'com.github.cryptomorin:XSeries:11.1.0'
3636
}
3737

3838
indra {
@@ -59,7 +59,7 @@ allprojects {
5959
}
6060
}
6161

62-
apply plugin: 'com.github.johnrengelman.shadow'
62+
apply plugin: 'io.github.goooler.shadow'
6363

6464
shadowJar {
6565
minimize()

version_new/src/main/kotlin/me/clip/voteparty/version/VersionHookNew.kt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ class VersionHookNew : VersionHook
1313
{
1414

1515
val world = location.world ?: return
16-
val particle = XParticle.of(type.name)
16+
val optionalParticle = XParticle.of(type.name)
17+
18+
if (!optionalParticle.isPresent)
19+
{
20+
return
21+
}
22+
23+
val particle = optionalParticle.get()
1724

1825
if (particle.get().dataType == DustOptions::class.java)
1926
{

0 commit comments

Comments
 (0)