Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Jul 5, 2024
1 parent bf36838 commit e1cb0bc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ public Optional<EntityType> getEntityType(ItemStack item) {
*/

public ItemStack getItemForEntityType(EntityType type) {
Validate.notNull(type, "The EntityType cannot be null");

if (type == null) {
// Fixes #4209
type = EntityType.PIG;
}
ItemStack item = getItem().clone();
ItemMeta meta = item.getItemMeta();

Expand Down

0 comments on commit e1cb0bc

Please sign in to comment.