fixed error regarding breeding of unbreedable entities

This commit is contained in:
Brianna O'Keefe 2018-11-14 17:54:12 -05:00
parent 615a23ab56
commit 4d4c43e006
3 changed files with 7 additions and 3 deletions

View File

@ -163,8 +163,12 @@ public class EntityTask extends BukkitRunnable {
ItemStack item = inventory.getItem(i);
if (item.getType() != EntityInfo.valueOf(entityType.name()).getMaterial() || item.getAmount() < 2)
try {
if (item.getType() != EntityInfo.valueOf(entityType.name()).getMaterial() || item.getAmount() < 2)
continue;
} catch (IllegalArgumentException e) {
continue;
}
int newAmt = item.getAmount() - 2;

View File

@ -1,7 +1,7 @@
name: EpicFarming
description: EpicFarming
main: com.songoda.epicfarming.EpicFarmingPlugin
version: 2.0.16
version: 2.0.17
depend: [Arconix]
soft-depend: [Multiverse-Core]
author: Songoda

View File

@ -2,7 +2,7 @@
<groupId>com.songoda</groupId>
<artifactId>EpicFarming</artifactId>
<modelVersion>4.0.0</modelVersion>
<version>2.0.16</version>
<version>2.0.17</version>
<build>
<defaultGoal>clean package</defaultGoal>
<plugins>