From 445f805bb852cbb93d3824522de67c1400a47298 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Tue, 12 Nov 2013 12:49:16 +0100 Subject: [PATCH] Set the treasure drop after using .clone() Fixes #1603 --- .../java/com/gmail/nossr50/skills/fishing/FishingManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java b/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java index 66624b3ce..64f70f5af 100644 --- a/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java +++ b/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java @@ -481,6 +481,8 @@ public class FishingManager extends SkillManager { treasureDrop.setDurability((short) (Misc.getRandom().nextInt(maxDurability))); } + treasure.setDrop(treasureDrop); + return treasure; }