From c711b8ae374b490bd395e18beb7e573874757f85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9D=8F=E9=BB=91?= Date: Sat, 4 May 2019 09:51:25 +0800 Subject: [PATCH] + update particle --- src/main/scala/me/skymc/taboolib/particle/EffLib.java | 2 +- .../scala/me/skymc/taboolib/particle/pack/ParticleData.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/me/skymc/taboolib/particle/EffLib.java b/src/main/scala/me/skymc/taboolib/particle/EffLib.java index 44b923c..18e0cef 100644 --- a/src/main/scala/me/skymc/taboolib/particle/EffLib.java +++ b/src/main/scala/me/skymc/taboolib/particle/EffLib.java @@ -556,7 +556,7 @@ public enum EffLib { * @return Whether the data type is correct or not */ private static boolean isDataCorrect(EffLib effect, ParticleData data) { - return ((effect == BLOCK_CRACK || effect == BLOCK_DUST) && data instanceof BlockData) || (effect == ITEM_CRACK && data instanceof ItemData); + return ((effect == BLOCK_CRACK || effect == BLOCK_DUST || effect == FALLING_DUST) && data instanceof BlockData) || ((effect == ITEM_CRACK) && data instanceof ItemData); } /** diff --git a/src/main/scala/me/skymc/taboolib/particle/pack/ParticleData.java b/src/main/scala/me/skymc/taboolib/particle/pack/ParticleData.java index 4996b0e..2d16501 100644 --- a/src/main/scala/me/skymc/taboolib/particle/pack/ParticleData.java +++ b/src/main/scala/me/skymc/taboolib/particle/pack/ParticleData.java @@ -72,6 +72,6 @@ public class ParticleData { } private boolean isBlockParticle(String name) { - return name.equalsIgnoreCase("blockdust") || name.equalsIgnoreCase("blockcrack") || name.equalsIgnoreCase("iconcrack") || name.equalsIgnoreCase("fallingdust"); + return name.equalsIgnoreCase("blockdust") || name.equalsIgnoreCase("blockcrack") || name.equalsIgnoreCase("fallingdust"); } }