Fixed ItemFiler OpenGL error.
This commit is contained in:
parent
cc89e15b5b
commit
40324b05f9
2 changed files with 3 additions and 2 deletions
|
@ -3,6 +3,7 @@ package gregtech.common.gui;
|
||||||
import gregtech.api.gui.GT_ContainerMetaTile_Machine;
|
import gregtech.api.gui.GT_ContainerMetaTile_Machine;
|
||||||
import gregtech.api.gui.GT_Slot_Holo;
|
import gregtech.api.gui.GT_Slot_Holo;
|
||||||
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
|
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
|
||||||
|
import gregtech.api.util.GT_ModHandler;
|
||||||
import gregtech.api.util.GT_Utility;
|
import gregtech.api.util.GT_Utility;
|
||||||
import gregtech.common.tileentities.automation.GT_MetaTileEntity_Filter;
|
import gregtech.common.tileentities.automation.GT_MetaTileEntity_Filter;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
@ -60,7 +61,8 @@ public class GT_Container_Filter
|
||||||
if (aMouseclick == 0) {
|
if (aMouseclick == 0) {
|
||||||
tSlot.putStack(null);
|
tSlot.putStack(null);
|
||||||
} else if (tStack != null) {
|
} else if (tStack != null) {
|
||||||
tStack.setItemDamage(32767);
|
tStack = GT_Utility.copyAmountAndMetaData(tStack.stackSize, 32767, tStack);
|
||||||
|
if(GT_Utility.isStackInvalid(tStack)){tStack=null;}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
tSlot.putStack(GT_Utility.copyAmount(1L, new Object[]{tStack}));
|
tSlot.putStack(GT_Utility.copyAmount(1L, new Object[]{tStack}));
|
||||||
|
|
|
@ -95,7 +95,6 @@ public class GT_MachineRecipeLoader
|
||||||
GT_Values.RA.addMixerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lapis, 1L), null, null, null, GT_ModHandler.getDistilledWater(1000), FluidRegistry.getFluidStack("ic2coolant", 1000), null, 256, 48);
|
GT_Values.RA.addMixerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lapis, 1L), null, null, null, GT_ModHandler.getDistilledWater(1000), FluidRegistry.getFluidStack("ic2coolant", 1000), null, 256, 48);
|
||||||
|
|
||||||
ItemStack[] tItems = {ItemList.Crop_Drop_Bauxite.get(1, new Object[0]),
|
ItemStack[] tItems = {ItemList.Crop_Drop_Bauxite.get(1, new Object[0]),
|
||||||
ItemList.Crop_Drop_Bauxite.get(1, new Object[0]),
|
|
||||||
ItemList.Crop_Drop_Ilmenite.get(1, new Object[0]),
|
ItemList.Crop_Drop_Ilmenite.get(1, new Object[0]),
|
||||||
ItemList.Crop_Drop_Pitchblende.get(1, new Object[0]),
|
ItemList.Crop_Drop_Pitchblende.get(1, new Object[0]),
|
||||||
ItemList.Crop_Drop_Uraninite.get(1, new Object[0]),
|
ItemList.Crop_Drop_Uraninite.get(1, new Object[0]),
|
||||||
|
|
Loading…
Reference in a new issue