소스 검색

Fix Shake poisoning the treasure cache with Wither skeletons

The returned ItemStack is modified for both Sheep and Skeletons, so a copy should be returned.
riking 11 년 전
부모
커밋
bca0ca6766
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/gmail/nossr50/skills/fishing/Fishing.java

+ 1 - 1
src/main/java/com/gmail/nossr50/skills/fishing/Fishing.java

@@ -145,7 +145,7 @@ public final class Fishing {
             cumulatedProbability += treasure.getDropChance();
 
             if (dropProbability < cumulatedProbability) {
-                return treasure.getDrop();
+                return treasure.getDrop().clone();
             }
         }