diff --git a/src/main/java/WayofTime/bloodmagic/item/routing/ItemFluidRouterFilter.java b/src/main/java/WayofTime/bloodmagic/item/routing/ItemFluidRouterFilter.java index 1437dbd1..534ab3c4 100644 --- a/src/main/java/WayofTime/bloodmagic/item/routing/ItemFluidRouterFilter.java +++ b/src/main/java/WayofTime/bloodmagic/item/routing/ItemFluidRouterFilter.java @@ -52,7 +52,7 @@ public class ItemFluidRouterFilter extends Item implements IFluidFilterProvider, @Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, World world, List tooltip, ITooltipFlag flag) { - tooltip.add(TextHelper.localize("tooltip.BloodMagic.fluidFilter." + names[stack.getItemDamage()])); + tooltip.add(TextHelper.localize("tooltip.bloodmagic.fluidFilter." + names[stack.getItemDamage()])); super.addInformation(stack, world, tooltip, flag); } @@ -89,8 +89,7 @@ public class ItemFluidRouterFilter extends Item implements IFluidFilterProvider, @Override public IFluidFilter getOutputFluidFilter(ItemStack filterStack, TileEntity tile, IFluidHandler handler) { - IFluidFilter testFilter = new RoutingFluidFilter(); - + IFluidFilter testFilter; switch (filterStack.getMetadata()) { case 0: testFilter = new RoutingFluidFilter(); @@ -104,7 +103,7 @@ public class ItemFluidRouterFilter extends Item implements IFluidFilterProvider, ItemInventory inv = new ItemInventory(filterStack, 9, ""); //TODO: Change to grab the filter from the Item later. for (int i = 0; i < inv.getSizeInventory(); i++) { ItemStack stack = inv.getStackInSlot(i); - if (stack == null) { + if (stack.isEmpty()) { continue; } diff --git a/src/main/resources/assets/bloodmagic/recipes/base_fluid_filter_0.json b/src/main/resources/assets/bloodmagic/recipes/base_fluid_filter_0.json new file mode 100644 index 00000000..29d26032 --- /dev/null +++ b/src/main/resources/assets/bloodmagic/recipes/base_fluid_filter_0.json @@ -0,0 +1,24 @@ +{ + "result": { + "item": "bloodmagic:base_fluid_filter", + "data": 0 + }, + "pattern": [ + "sgs", + "gfg", + "sgs" + ], + "type": "forge:ore_shaped", + "key": { + "s": { + "item": "#STICKWOOD" + }, + "f": { + "item": "bloodmagic:component", + "data": 10 + }, + "g": { + "item": "minecraft:bucket" + } + } +} \ No newline at end of file