Skip to content

Commit 9535edc

Browse files
committed
Hotfix minecraft does not understand name local captures
1 parent 24568ed commit 9535edc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/net/robofox/copperrails/mixin/OldMinecartBehaviorMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public <T extends Comparable<T>> T getSnapPositionToRailMixin(BlockState blockSt
226226
target = "Lnet/minecraft/world/entity/vehicle/AbstractMinecart;move(Lnet/minecraft/world/entity/MoverType;Lnet/minecraft/world/phys/Vec3;)V"
227227
)
228228
)
229-
public void accurateCollisionCheckOnMove(AbstractMinecart minecart, MoverType moverType, Vec3 vec32, @Local(name = "railShape") RailShape railShape) {
229+
public void accurateCollisionCheckOnMove(AbstractMinecart minecart, MoverType moverType, Vec3 vec32, @Local(ordinal = 0) RailShape railShape) {
230230
if (vec32.horizontalDistance() < 0.6) {
231231
minecart.move(moverType, vec32);
232232
return;

0 commit comments

Comments
 (0)