Skip to content

Commit

Permalink
Add /particle command to call into Spigot API
Browse files Browse the repository at this point in the history
  • Loading branch information
deathcap committed Apr 17, 2015
1 parent 7e45185 commit f0a7122
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Glowkit
2 changes: 1 addition & 1 deletion src/main/java/net/glowstone/constants/GlowParticle.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static int[] getData(Effect particle, MaterialData material) {
}
return new int[]{material.getItemTypeId()};
default:
if (material != null) {
if (material != null && material.getItemTypeId() != 0) {
throw new IllegalArgumentException("Particle " + particle + " does not use material, " + material + " provided");
}
return EMPTY;
Expand Down

0 comments on commit f0a7122

Please sign in to comment.