diff --git a/CHANGELOG.md b/CHANGELOG.md index 506c09376..f89282fa2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1 @@ -### Update -- Ignore offhand when right-clicking a physical crate. \ No newline at end of file +- Fixed an error with war crate throwing an exception. \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index b7a2d8fb0..4e651443d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { val buildNumber: String? = System.getenv("BUILD_NUMBER") -rootProject.version = if (buildNumber != null) "${libs.versions.minecraft.get()}-$buildNumber" else "4.3.3" +rootProject.version = if (buildNumber != null) "${libs.versions.minecraft.get()}-$buildNumber" else "4.3.4" subprojects.filter { it.name != "api" }.forEach { it.project.version = rootProject.version diff --git a/paper/src/main/java/com/badbones69/crazycrates/listeners/crates/types/WarCrateListener.java b/paper/src/main/java/com/badbones69/crazycrates/listeners/crates/types/WarCrateListener.java index 32915c0ec..a56772055 100644 --- a/paper/src/main/java/com/badbones69/crazycrates/listeners/crates/types/WarCrateListener.java +++ b/paper/src/main/java/com/badbones69/crazycrates/listeners/crates/types/WarCrateListener.java @@ -68,7 +68,7 @@ public void run() { if (crateManager.hasCrateTask(player)) crateManager.endCrate(player); // Removing other items then the prize. - crateManager.addCrateTask(player, new FoliaScheduler(plugin, SchedulerType.entity_scheduler) { + crateManager.addCrateTask(player, new FoliaScheduler(plugin, null, player) { @Override public void run() { for (int i = 0; i < 9; i++) { @@ -78,7 +78,7 @@ public void run() { if (crateManager.hasCrateTask(player)) crateManager.endCrate(player); // Closing the inventory when finished. - crateManager.addCrateTask(player, new FoliaScheduler(plugin, SchedulerType.entity_scheduler) { + crateManager.addCrateTask(player, new FoliaScheduler(plugin, null, player) { @Override public void run() { if (crateManager.hasCrateTask(player)) crateManager.endCrate(player);