mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
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:
parent
bca0ca6766
commit
e5acf6d936
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user