- Fixed players dismounting from Trains upon assembly
This commit is contained in:
simibubi 2023-05-10 16:53:29 +02:00
parent ee33858ddc
commit 3c1961c846

View file

@ -103,7 +103,7 @@ public class Carriage {
DimensionalCarriageEntity dimensional = getDimensional(level);
dimensional.alignEntity(entity);
dimensional.removeAndSaveEntity(entity, false);
dimensional.removeAndSaveEntity(entity, true);
}
public DimensionalCarriageEntity getDimensional(Level level) {
@ -723,8 +723,8 @@ public class Carriage {
}
private void dismountPlayer(ServerLevel sLevel, ServerPlayer sp, Integer seat, boolean portal) {
if (!portal) {
private void dismountPlayer(ServerLevel sLevel, ServerPlayer sp, Integer seat, boolean capture) {
if (!capture) {
sp.stopRiding();
return;
}