Skip to content

Commit

Permalink
Solution for Matocolotoe#32, for now at least
Browse files Browse the repository at this point in the history
  • Loading branch information
Matocolotoe committed Aug 27, 2021
1 parent efe23dd commit 7c81dfc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/ch/njol/skript/aliases/ItemType.java
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ public boolean isOfType(@Nullable BlockState block) {
public boolean isOfType(@Nullable Block block) {
if (block == null)
return isOfType(Material.AIR, null);
if (block.getType() == Material.valueOf("BREWING_STAND"))
return this.getRandom().getType() == Material.valueOf("BREWING_STAND_ITEM");
if (block.getType() == Material.valueOf("NETHER_WARTS"))
return this.getRandom().getType() == Material.valueOf("NETHER_STALK");
return isOfType(block.getState());
}

Expand Down

0 comments on commit 7c81dfc

Please # to comment.