mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16: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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
drop.setData(new Wool(sheep.getColor()));
|
drop = new Wool(sheep.getColor()).toItemStack(drop.getAmount());
|
||||||
sheep.setSheared(true);
|
sheep.setSheared(true);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -474,7 +474,7 @@ public class FishingManager extends SkillManager {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
ItemStack treasureDrop = treasure.getDrop();
|
ItemStack treasureDrop = treasure.getDrop().clone();
|
||||||
short maxDurability = treasureDrop.getType().getMaxDurability();
|
short maxDurability = treasureDrop.getType().getMaxDurability();
|
||||||
|
|
||||||
if (maxDurability > 0) {
|
if (maxDurability > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user