mirror of
https://github.com/songoda/UltimateTimber.git
synced 2024-11-15 14:55:46 +01:00
Merge branch 'development'
This commit is contained in:
commit
c39f3cc1bd
@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<groupId>com.songoda</groupId>
|
||||
<artifactId>UltimateTimber</artifactId>
|
||||
<version>2.3.2</version>
|
||||
<version>2.3.3</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
<dependency>
|
||||
<groupId>com.songoda</groupId>
|
||||
<artifactId>SongodaCore</artifactId>
|
||||
<version>2.6.12</version>
|
||||
<version>2.6.13</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<groupId>com.songoda</groupId>
|
||||
<artifactId>UltimateTimber</artifactId>
|
||||
<version>2.3.2</version>
|
||||
<version>2.3.3</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
@ -324,7 +324,7 @@ public class TreeDefinitionManager extends Manager {
|
||||
|
||||
for (TreeDefinition treeDefinition : this.treeDefinitions) {
|
||||
if (treeDefinition.isRequiredAxe() || isGlobalAxeRequired()) {
|
||||
if (new NBTItem(tool).hasKey(requiredAxeKey))
|
||||
if (tool != null && !tool.getType().isAir() && new NBTItem(tool).hasKey(requiredAxeKey))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -356,7 +356,7 @@ public class TreeDefinitionManager extends Manager {
|
||||
|
||||
// If the tree definition requires the custom axe, don't allow any other checks to pass.
|
||||
if (treeDefinition.isRequiredAxe() || isGlobalAxeRequired()) {
|
||||
return new NBTItem(tool).hasKey(requiredAxeKey);
|
||||
return tool != null && !tool.getType().isAir() && new NBTItem(tool).hasKey(requiredAxeKey);
|
||||
}
|
||||
|
||||
for (ItemStack requiredTool : treeDefinition.getRequiredTools())
|
||||
|
Loading…
Reference in New Issue
Block a user