Skip to content

Commit c605603

Browse files
committed
TeleportCommand.java compiler error fixed.
Signed-off-by: Pavel Erokhin (MairwunNx) <[email protected]>
1 parent 4650810 commit c605603

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/mairwunnx/projectessentials/core/impl/vanilla/commands/TeleportCommand.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ private static int teleportToPos(CommandSource source, Collection<? extends Enti
119119
public static void teleport(CommandSource source, Entity entityIn, ServerWorld worldIn, double x, double y, double z, Set<SPlayerPositionLookPacket.Flags> relativeList, float yaw, float pitch, @Nullable Facing facing) {
120120
if (entityIn instanceof ServerPlayerEntity) {
121121
ChunkPos chunkpos = new ChunkPos(new BlockPos(x, y, z));
122-
worldIn.getChunkProvider().func_217228_a(TicketType.POST_TELEPORT, chunkpos, 1, entityIn.getEntityId());
122+
worldIn.getChunkProvider().registerTicket(TicketType.POST_TELEPORT, chunkpos, 1, entityIn.getEntityId());
123123
entityIn.stopRiding();
124124
if (((ServerPlayerEntity) entityIn).isSleeping()) {
125-
((ServerPlayerEntity) entityIn).wakeUpPlayer(true, true, false);
125+
((ServerPlayerEntity) entityIn).stopSleepInBed(true, true);
126126
}
127127

128128
if (worldIn == entityIn.world) {
@@ -151,7 +151,7 @@ public static void teleport(CommandSource source, Entity entityIn, ServerWorld w
151151
entityIn.copyDataFromOld(entity);
152152
entityIn.setLocationAndAngles(x, y, z, f1, f);
153153
entityIn.setRotationYawHead(f1);
154-
worldIn.func_217460_e(entityIn);
154+
worldIn.addFromAnotherDimension(entityIn);
155155
}
156156
}
157157

0 commit comments

Comments
 (0)