mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 19:46:21 +01:00
Fixed issues introduced by recent 'portal changes' commit.
This commit is contained in:
parent
8320917363
commit
4bdc752acd
@ -383,6 +383,7 @@ public class EntityBoat extends Entity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.passenger != null && this.passenger.dead) {
|
if (this.passenger != null && this.passenger.dead) {
|
||||||
|
this.passenger.vehicle = null;
|
||||||
this.passenger = null;
|
this.passenger = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -583,6 +583,7 @@ public class EntityMinecart extends Entity implements IInventory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.passenger != null && this.passenger.dead) {
|
if (this.passenger != null && this.passenger.dead) {
|
||||||
|
this.passenger.vehicle = null;
|
||||||
this.passenger = null;
|
this.passenger = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,6 +231,8 @@ public class ServerConfigurationManager {
|
|||||||
cserver.getPluginManager().callEvent(respawnEvent);
|
cserver.getPluginManager().callEvent(respawnEvent);
|
||||||
location = respawnEvent.getRespawnLocation();
|
location = respawnEvent.getRespawnLocation();
|
||||||
entityplayer.health = 20;
|
entityplayer.health = 20;
|
||||||
|
entityplayer.fireTicks = 0;
|
||||||
|
entityplayer.fallDistance = 0;
|
||||||
} else {
|
} else {
|
||||||
location.setWorld(this.server.a(i).getWorld());
|
location.setWorld(this.server.a(i).getWorld());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user