Skip to content

Commit 711b649

Browse files
committed
Bump adapter definition to 1.11.64
Fixes #1126
1 parent 9c2392d commit 711b649

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

Diff for: gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ org.gradle.daemon=true
66
# Versions
77
versionConnector=1.0.0-beta.44
88
versionAdapter=1.11.55-1.20.1-20240428.153904
9-
versionAdapterDefinition=1.11.63
9+
versionAdapterDefinition=1.11.64
1010
versionAdapterRuntime=1.0.0
1111

1212
versionMc=1.20.1

Diff for: src/main/java/org/sinytra/connector/transformer/MixinPatches.java

+2-9
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public static List<Patch> getPatches() {
187187
Patch.builder()
188188
.targetClass("net/minecraft/world/entity/LivingEntity")
189189
.targetMethod("m_21208_()V")
190-
.targetMixinType(MixinConstants.MODIFY_CONST)
190+
.targetConstant(-0.03999999910593033D)
191191
.extractMixin("net/minecraftforge/common/extensions/IForgeLivingEntity")
192192
.modifyTarget("sinkInFluid(Lnet/minecraftforge/fluids/FluidType;)V")
193193
.build(),
@@ -456,14 +456,7 @@ public static List<Patch> getPatches() {
456456
.targetClass("net/minecraft/world/entity/LivingEntity")
457457
.targetMethod("m_7023_") // travel
458458
.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)
467460
.modifyMixinType(MixinConstants.WRAP_OPERATION, builder -> builder
468461
.sameTarget()
469462
.injectionPoint("INVOKE", "Lnet/minecraft/world/entity/ai/attributes/AttributeInstance;m_22135_()D") // getValue

0 commit comments

Comments
 (0)