File tree Expand file tree Collapse file tree
src/main/java/su/terrafirmagreg/core/mixins Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package su .terrafirmagreg .core .mixins .client .waterflasks ;
22
3+ import java .util .function .Supplier ;
4+
5+ import org .labellum .mc .waterflasks .item .FlaskItem ;
6+ import org .spongepowered .asm .mixin .Mixin ;
7+ import org .spongepowered .asm .mixin .injection .At ;
8+ import org .spongepowered .asm .mixin .injection .Slice ;
9+
310import com .llamalad7 .mixinextras .injector .ModifyExpressionValue ;
411import com .llamalad7 .mixinextras .sugar .Local ;
12+
513import net .dries007 .tfc .common .capabilities .Capabilities ;
614import net .dries007 .tfc .common .items .DiscreteFluidContainerItem ;
715import net .dries007 .tfc .util .Drinkable ;
1220import net .minecraft .world .item .ItemStack ;
1321import net .minecraft .world .level .material .Fluid ;
1422import net .minecraftforge .fluids .capability .IFluidHandler ;
15- import org .labellum .mc .waterflasks .item .FlaskItem ;
16- import org .spongepowered .asm .mixin .Mixin ;
17- import org .spongepowered .asm .mixin .injection .At ;
18- import org .spongepowered .asm .mixin .injection .Slice ;
19-
20- import java .util .function .Supplier ;
2123
2224@ Mixin (value = FlaskItem .class , remap = false )
2325public abstract class FlaskItemMixin extends DiscreteFluidContainerItem {
Original file line number Diff line number Diff line change 33import org .spongepowered .asm .mixin .Mixin ;
44import org .spongepowered .asm .mixin .Unique ;
55import org .spongepowered .asm .mixin .injection .At ;
6+ import org .spongepowered .asm .mixin .injection .Inject ;
67import org .spongepowered .asm .mixin .injection .ModifyArg ;
8+ import org .spongepowered .asm .mixin .injection .callback .CallbackInfo ;
79
810import com .gregtechceu .gtceu .integration .xei .widgets .GTRecipeWidget ;
911
@@ -18,4 +20,9 @@ public class GTRecipeWidgetMixin {
1820 tfg$dimensionOffset -= 17 ;
1921 return yOffset + tfg$dimensionOffset ;
2022 }
23+
24+ @ Inject (method = "setRecipeWidget" , at = @ At (value = "TAIL" ))
25+ private void tfg$resetOffset (CallbackInfo ci ) {
26+ tfg$dimensionOffset = 17 ;
27+ }
2128}
You can’t perform that action at this time.
0 commit comments