+ update particle
This commit is contained in:
parent
464ba92a86
commit
c711b8ae37
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user