1717import net .minecraft .item .ItemStack ;
1818import net .minecraftforge .fluids .FluidStack ;
1919import net .minecraftforge .fluids .capability .CapabilityFluidHandler ;
20- import net .minecraftforge .fml .common .Optional ;
2120import net .minecraftforge .items .ItemHandlerHelper ;
2221import org .spongepowered .asm .mixin .Final ;
2322import org .spongepowered .asm .mixin .Intrinsic ;
2423import org .spongepowered .asm .mixin .Mixin ;
2524import org .spongepowered .asm .mixin .Shadow ;
26- import org .spongepowered .asm .mixin .Unique ;
2725
2826@ Mixin (value = ContainerCellWorkbench .class , remap = false )
2927public abstract class MixinContainerCellWorkbench extends ContainerUpgradeable {
@@ -69,20 +67,13 @@ public void doAction(final EntityPlayerMP player, final InventoryAction action,
6967 }
7068 return ;
7169 }
72- if (ModAndClassUtil .GAS && slot instanceof SlotFake && !stack .isEmpty () && Util .getGasFromItem (stack ) != null ) {
73- mek$doAction (player , action , slotId , id , slot , stack );
70+ if (ModAndClassUtil .GAS && slot instanceof SlotFake && !stack .isEmpty ()) {
71+ if (Util .gasAction (action , slot , stack )) {
72+ super .doAction (player , action , slotId , id );
73+ }
7474 return ;
7575 }
7676 super .doAction (player , action , slotId , id );
7777 }
7878
79- @ Unique
80- @ Optional .Method (modid = "mekeng" )
81- private void mek$doAction (EntityPlayerMP player , InventoryAction action , int slotId , long id , Slot slot , ItemStack stack ) {
82- Object gas = Util .gasAction (action , slot , stack );
83- if (gas == null ) {
84- super .doAction (player , action , slotId , id );
85- }
86- }
87-
8879}
0 commit comments