Small fix
This commit is contained in:
parent
a9a5d8f225
commit
2820c51ae6
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ public class EndPortalBlock extends NetherPortalBlock implements IRenderTypeable
|
||||||
if (exitPos == null) return;
|
if (exitPos == null) return;
|
||||||
if (entity instanceof ServerPlayerEntity) {
|
if (entity instanceof ServerPlayerEntity) {
|
||||||
ServerPlayerEntity player = (ServerPlayerEntity) entity;
|
ServerPlayerEntity player = (ServerPlayerEntity) entity;
|
||||||
player.teleport(destination, exitPos.getX() + 0.5D, exitPos.getY(), exitPos.getZ() + 0.5D, entity.yaw, entity.pitch);
|
player.teleport(destination, exitPos.getX() + 0.5D, exitPos.getY(), exitPos.getZ() + 0.5D, player.yaw, player.pitch);
|
||||||
player.resetNetherPortalCooldown();
|
player.resetNetherPortalCooldown();
|
||||||
} else {
|
} else {
|
||||||
TeleportingEntity teleEntity = (TeleportingEntity) entity;
|
TeleportingEntity teleEntity = (TeleportingEntity) entity;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue