File tree 2 files changed +3
-10
lines changed
src/main/java/org/sinytra/connector/transformer
2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ org.gradle.daemon=true
6
6
# Versions
7
7
versionConnector =1.0.0-beta.44
8
8
versionAdapter =1.11.55-1.20.1-20240428.153904
9
- versionAdapterDefinition =1.11.63
9
+ versionAdapterDefinition =1.11.64
10
10
versionAdapterRuntime =1.0.0
11
11
12
12
versionMc =1.20.1
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ public static List<Patch> getPatches() {
187
187
Patch .builder ()
188
188
.targetClass ("net/minecraft/world/entity/LivingEntity" )
189
189
.targetMethod ("m_21208_()V" )
190
- .targetMixinType ( MixinConstants . MODIFY_CONST )
190
+ .targetConstant (- 0.03999999910593033D )
191
191
.extractMixin ("net/minecraftforge/common/extensions/IForgeLivingEntity" )
192
192
.modifyTarget ("sinkInFluid(Lnet/minecraftforge/fluids/FluidType;)V" )
193
193
.build (),
@@ -456,14 +456,7 @@ public static List<Patch> getPatches() {
456
456
.targetClass ("net/minecraft/world/entity/LivingEntity" )
457
457
.targetMethod ("m_7023_" ) // travel
458
458
.targetMixinType (MixinConstants .MODIFY_VAR )
459
- .targetAnnotationValues (handle -> handle .getNested ("at" )
460
- .filter (at -> at .getValue ("value" )
461
- .filter (h -> h .get ().equals ("CONSTANT" ))
462
- .isPresent ())
463
- .flatMap (at -> at .getValue ("args" ))
464
- .map (v -> (List <String >) v .get ())
465
- .map (v -> v .size () == 1 && v .get (0 ).equals ("doubleValue=0.01" ))
466
- .orElse (false ))
459
+ .targetConstant (0.01 )
467
460
.modifyMixinType (MixinConstants .WRAP_OPERATION , builder -> builder
468
461
.sameTarget ()
469
462
.injectionPoint ("INVOKE" , "Lnet/minecraft/world/entity/ai/attributes/AttributeInstance;m_22135_()D" ) // getValue
You can’t perform that action at this time.
0 commit comments