From 3f56c8e690cf135a1ccc93511f780fe2c29d7092 Mon Sep 17 00:00:00 2001 From: bm01 Date: Sat, 16 Mar 2013 16:48:55 +0100 Subject: [PATCH] Fixed Treefeller trying to cut too many leaves --- Changelog.txt | 1 + .../com/gmail/nossr50/skills/woodcutting/Woodcutting.java | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changelog.txt b/Changelog.txt index 670a6939a..981a47eca 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -33,6 +33,7 @@ Version 1.4.03 = Fixed bug where Beast Lore wouldn't work on friendly pets = Fixed bug where Deflect was calculated based on the attacker, not the defender. (We really did this time!) = Fixed bug where Treefeller would not deal durability damage when the axe "splinters into dozens of pieces" + = Fixed bug where Treefeller would try to cut too many leaves and reach the threshold when it shouldn't ! Moved the Salvage unlock level from config.yml to advanced.yml ! Changed how Chimaera Wings are acquired, you need to craft them now. (By default, use 5 feathers in a shapeless recipe) ! Changed how Chimaera Wings teleport players to the spawnpoint, will now check if the location is safe diff --git a/src/main/java/com/gmail/nossr50/skills/woodcutting/Woodcutting.java b/src/main/java/com/gmail/nossr50/skills/woodcutting/Woodcutting.java index b4e5c7c17..5709e5055 100644 --- a/src/main/java/com/gmail/nossr50/skills/woodcutting/Woodcutting.java +++ b/src/main/java/com/gmail/nossr50/skills/woodcutting/Woodcutting.java @@ -259,6 +259,9 @@ public final class Woodcutting { return; } - futureCenterBlocks.add(blockState); + // Without this check Tree Feller propagates through leaves until the threshold is hit + if (BlockUtils.isLog(blockState)) { + futureCenterBlocks.add(blockState); + } } }