mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Fixed an issue with Bins, also fixed a small GUI issue with the new filter system
This commit is contained in:
1 parent
de86e0b2a2
commit
2b817e28cd
2 files changed
+12
-5
No files matched your search
@@ -204,10 +204,10 @@ public class GuiMItemStackFilter extends GuiMekanism
|
||||
|
||||
if(xAxis >= 15 && xAxis <= 29 && yAxis >= 45 && yAxis <= 59)
|
||||
{
|
||||
drawTexturedModalRect(guiWidth + 14, guiHeight + 45, 176 + 37, 0, 14, 14);
|
||||
drawTexturedModalRect(guiWidth + 15, guiHeight + 45, 176 + 37, 0, 14, 14);
|
||||
}
|
||||
else {
|
||||
drawTexturedModalRect(guiWidth + 14, guiHeight + 45, 176 + 37, 14, 14, 14);
|
||||
drawTexturedModalRect(guiWidth + 15, guiHeight + 45, 176 + 37, 14, 14, 14);
|
||||
}
|
||||
|
||||
if(xAxis >= 12 && xAxis <= 28 && yAxis >= 19 && yAxis <= 35)
|
||||
|
||||
@@ -10,14 +10,21 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.gameevent.PlayerEvent.ItemCraftedEvent;
|
||||
|
||||
public class BinRecipe implements IRecipe//, ICraftingHandler
|
||||
public class BinRecipe implements IRecipe
|
||||
{
|
||||
private static boolean registered;
|
||||
|
||||
public BinRecipe()
|
||||
{
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
if(!registered)
|
||||
{
|
||||
FMLCommonHandler.instance().bus().register(this);
|
||||
registered = true;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -114,7 +121,7 @@ public class BinRecipe implements IRecipe//, ICraftingHandler
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onCrafting(ItemCraftedEvent event) //EntityPlayer player, ItemStack item, IInventory craftMatrix)
|
||||
public void onCrafting(ItemCraftedEvent event)
|
||||
{
|
||||
if(getResult(event.craftMatrix) != null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user