+ update particle

This commit is contained in:
坏黑 2019-05-04 09:51:25 +08:00
parent 464ba92a86
commit c711b8ae37
2 changed files with 2 additions and 2 deletions

View File

@ -556,7 +556,7 @@ public enum EffLib {
* @return Whether the data type is correct or not * @return Whether the data type is correct or not
*/ */
private static boolean isDataCorrect(EffLib effect, ParticleData data) { 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);
} }
/** /**

View File

@ -72,6 +72,6 @@ public class ParticleData {
} }
private boolean isBlockParticle(String name) { 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");
} }
} }