Skip to content

Commit a7ffb5f

Browse files
committed
Hotfix minecraft does not understand name local captures
(cherry picked from commit 9535edc)
1 parent 5498b9b commit a7ffb5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

0 commit comments

Comments
 (0)