mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 12:19:55 +00:00
Fix treetaps not being recognized under the new system.
This commit is contained in:
1 parent
619348cb71
commit
d993cd4cbf
1 file changed
+6
-1
@@ -53,7 +53,12 @@ public class TileFarmStation extends AbstractPoweredTaskEntity {
|
||||
abstract boolean match(ItemStack item);
|
||||
|
||||
public static boolean isTool(ItemStack stack) {
|
||||
return HOE.itemMatches(stack) || AXE.itemMatches(stack);
|
||||
for (ToolType type : values()) {
|
||||
if (type.itemMatches(stack)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user