Skip to content

Commit

Permalink
调整假人方向
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu-ZT committed Nov 4, 2024
1 parent b39f3ad commit 803a4f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/dev/dubhe/gugle/carpet/commands/BotCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,9 @@ private static boolean load(String name, Consumer<Component> failure) {
if (p.isPresent()) current = p.get();
if (worldIn == null) return;
EntityPlayerMPFake instance = EntityPlayerMPFake.respawnFake(BOT_INFO.server, worldIn, current, ClientInformation.createDefault());
instance.fixStartingPosition = () -> instance.moveTo(botInfo.pos.x, botInfo.pos.y, botInfo.pos.z, botInfo.facing.x, botInfo.facing.y);
instance.fixStartingPosition = () -> instance.moveTo(botInfo.pos.x, botInfo.pos.y, botInfo.pos.z, botInfo.facing.y, botInfo.facing.x);
BOT_INFO.server.getPlayerList().placeNewPlayer(new FakeClientConnection(PacketFlow.SERVERBOUND), instance, new CommonListenerCookie(current, 0, instance.clientInformation(), false));
instance.teleportTo(worldIn, botInfo.pos.x, botInfo.pos.y, botInfo.pos.z, botInfo.facing.x, botInfo.facing.y);
instance.teleportTo(worldIn, botInfo.pos.x, botInfo.pos.y, botInfo.pos.z, botInfo.facing.y, botInfo.facing.x);
instance.setHealth(20.0F);
((EntityInvoker) instance).invokerUnsetRemoved();
AttributeInstance attribute = instance.getAttribute(Attributes.STEP_HEIGHT);
Expand Down

0 comments on commit 803a4f0

Please sign in to comment.