Fix fluid containers

This commit is contained in:
Nedelosk committed 2017-01-25 20:58:11 +01:00
1 parent cdea827464
commit 923d3791cd
49 files changed
+397 -268

No files matched your search

@@ -2,6 +2,7 @@ package binnie.extratrees.carpentry;
import binnie.Binnie;
import binnie.core.block.TileEntityMetadata;
import binnie.core.models.ModelMutlipass;
import binnie.extratrees.ExtraTrees;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
@@ -101,12 +101,14 @@ public class CarpentryInterface implements ICarpentryInterface {
return null;
}
for (final Map.Entry<Integer, IDesignMaterial> entry : CarpentryInterface.woodMap.entrySet()) {
final ItemStack key = entry.getValue().getStack();
if (key == null) {
continue;
}
if (key.isItemEqual(stack)) {
return entry.getValue();
for(boolean fireproof : new boolean[]{true, false}){
final ItemStack key = entry.getValue().getStack(fireproof);
if (key == null) {
continue;
}
if (key.isItemEqual(stack)) {
return entry.getValue();
}
}
}
return null;