Skip to content

Commit

Permalink
Fix a bug with solid blocks not affecting new LOG_2 materials
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Aksenov committed Jul 24, 2014
1 parent 0b1a2b8 commit 876ac71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/github/lucariatias/realchop/RealChop.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public void blockBreak(Block breakBlock, Location playerLocation) {
Location nearLocation = nearPairs.getKey();
// if (nearLocation == breakBlockLocation) continue;
Block nearBlock = nearPairs.getValue();
if (nearBlock.getType() == Material.LOG) {
if (nearBlock.getType() == Material.LOG || nearBlock.getType() == Material.LOG_2) {
if (tree.containsKey(nearLocation)) {
tree.remove(nearLocation);
newSearch.put(nearLocation, nearBlock);
Expand Down

0 comments on commit 876ac71

Please sign in to comment.