Also clone fishing treasures, use alternate Wool method

The alternate wool method is testing, the treasure clone is there to stay ;)
This commit is contained in:
riking 2013-11-06 21:34:16 -08:00
parent bca0ca6766
commit e5acf6d936

View File

@ -399,7 +399,7 @@ public class FishingManager extends SkillManager {
return;
}
drop.setData(new Wool(sheep.getColor()));
drop = new Wool(sheep.getColor()).toItemStack(drop.getAmount());
sheep.setSheared(true);
}
break;
@ -474,7 +474,7 @@ public class FishingManager extends SkillManager {
return null;
}
ItemStack treasureDrop = treasure.getDrop();
ItemStack treasureDrop = treasure.getDrop().clone();
short maxDurability = treasureDrop.getType().getMaxDurability();
if (maxDurability > 0) {