#132 - Removed passengers and mounts on teleportation

This commit is contained in:
Kino 2017-06-19 13:58:42 -04:00
parent b787896323
commit 60ad79f286

View file

@ -163,7 +163,6 @@ public class PlayerAether
{
if (this.thePlayer.posY < -2)
{
this.thePlayer.dismountRidingEntity();
this.teleportPlayer(false);
this.thePlayer.setPositionAndUpdate(thePlayer.posX, 256, thePlayer.posZ);
}
@ -436,6 +435,9 @@ public class PlayerAether
*/
private void teleportPlayer(boolean shouldSpawnPortal)
{
this.thePlayer.dismountRidingEntity();
this.thePlayer.removePassengers();
if (this.thePlayer instanceof EntityPlayerMP)
{
EntityPlayerMP player = (EntityPlayerMP) this.thePlayer;