Fix for #1782, cheap basic tools and fixed some warnings here and there

This commit is contained in:
drcrazy 2019-08-14 17:15:34 +03:00
parent dc8511f1f0
commit 9035e4376a
9 changed files with 29 additions and 37 deletions

View file

@ -34,7 +34,6 @@ import reborncore.client.containerBuilder.IContainerProvider;
import reborncore.client.containerBuilder.builder.BuiltContainer;
import reborncore.client.containerBuilder.builder.ContainerBuilder;
import reborncore.common.recipes.RecipeCrafter;
import reborncore.common.util.IInventoryAccess;
import reborncore.common.util.RebornInventory;
import reborncore.common.util.Tank;
import techreborn.config.TechRebornConfig;
@ -76,16 +75,6 @@ public class IndustrialGrinderBlockEntity extends GenericMachineBlockEntity impl
&& centerBlock.getMaterial() == Material.WATER);
return down && center && blade && up;
}
private static IInventoryAccess<IndustrialGrinderBlockEntity> getInventoryAccess(){
return (slotID, stack, face, direction, blockEntity) -> {
if(slotID == 1){
//TODO check if the item has fluid in it
//return stack.getCapability(CapabilityFluidHandler.FLUID_HANDLER_ITEM_CAPABILITY, null).isPresent();
}
return true;
};
}
// TilePowerAcceptor
@Override