Work on MultiFence

This commit is contained in:
Nedelosk committed 2017-04-10 19:19:19 +02:00
1 parent c949131976
commit f1640ff21b
8 files changed
+200 -105

No files matched your search

@@ -122,7 +122,7 @@ public class WoodManager {
}
public static List<IPlankType> getAllPlankTypes() {
final List<IPlankType> list = new ArrayList<>();
List<IPlankType> list = new ArrayList<>();
Collections.addAll(list, PlankType.ExtraTreePlanks.values());
Collections.addAll(list, PlankType.ForestryPlanks.values());
//TODO: extrabiomes 1.10.2
@@ -136,9 +136,9 @@ public class WoodManager {
}
@Nullable
public static IPlankType get(final ItemStack species) {
for (final IPlankType type : getAllPlankTypes()) {
if (type.getStack().isItemEqual(species)) {
public static IPlankType getPlankType(ItemStack itemStack) {
for (IPlankType type : getAllPlankTypes()) {
if (type.getStack(false).isItemEqual(itemStack)) {
return type;
}
}