Skip to content

Commit 0f40f73

Browse files
IThundxrtechno-sam
authored andcommitted
Restore actual fix
1 parent 61240da commit 0f40f73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/src/main/java/com/railwayteam/railways/mixin/MixinTrain.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ private static void readOccupiedCouplers(CompoundTag tag, Map<UUID, TrackGraph>
236236
}
237237

238238
@Inject(method = "collideWithOtherTrains", at = @At(value = "INVOKE", target = "Lcom/simibubi/create/content/trains/entity/Train;crash()V", ordinal = 0), cancellable = true)
239-
private void railways$handcarCollision(Level level, Carriage carriage, CallbackInfo ci, @Local Train train, @Local(name = "v", ordinal = 0) Vec3 v) {
239+
private void railways$handcarCollision(Level level, Carriage carriage, CallbackInfo ci, @Local(ordinal = 1) Train train, @Local Pair<Train, Vec3> collision) {
240+
Vec3 v = collision.getSecond();
241+
240242
// Self Train / Train that collided with the other one
241243
if (((IHandcarTrain) this).railways$isHandcar()) {
242244
if (!invalid) {

0 commit comments

Comments
 (0)