Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

Freshly Compiled 1.15.2 Baritone Has Weird Behavior

Ringwid opened this issue · 14 comments

commented

Some information

Minecraft version: 1.15.2
Baritone version: 1.5.3
Forge mods (if used): None

Exception, error or logs

No errors or any differences manifested in log files

How to reproduce

I've been maintaining a private fork of baritone, and it's all messed up after a new compilation. I thought it was my code, so I cloned a clean repo and the problems still persisted. Please note that baritone runs completely fine using the run client gradle task.

To reproduce, checkout branch 1.15.2 and gradlew build. Launch game (not with the run client task) and do something like #goto 20, or whatever command. Baritone couldn't control the look behavior, and the movement is locked in a certain direction. That is, even after #stop, W key moves the player along a certain yaw that is independent of which direction the player's looking at.

I could came up with no other explanation than that there was something wrong with the mapping. I am not well acquainted with how mixins work, but a did a quick diff on the two jar file directory. Everything is the same except for mixins.baritone.refmap.json. Baritone's 1.15.2 branch hasn't had a new commit for a while so I assume this is from upstream. Please let me know if I'm doing something wrong when compiling. Thanks.

The diff output is attached here, where baritone-api-1.5.3 is the officially distributed jar and baritone-api-1.5.3-sc is the freshly compiled one.

diff baritone-api-1.5.3 baritone-api-1.5.3-sc
Common subdirectories: baritone-api-1.5.3/baritone and baritone-api-1.5.3-sc/baritone
Common subdirectories: baritone-api-1.5.3/META-INF and baritone-api-1.5.3-sc/META-INF
diff baritone-api-1.5.3/mixins.baritone.refmap.json baritone-api-1.5.3-sc/mixins.baritone.refmap.json
1c1
< {"data":{"notch":{"baritone/launch/mixins/MixinChunkArray":{"net.minecraft.client.multiplayer.ClientChunkProvider$ChunkArray":"dnm$a"},"baritone/launch/mixins/MixinClientPlayNetHandler":{"handleChunkData":"Ldnp;a(Lnf;)V","handleCombatEvent":"Ldnp;a(Lnt;)V","net/minecraft/client/Minecraft.displayGuiScreen(Lnet/minecraft/client/gui/screen/Screen;)V":"Ldbn;a(Ldgb;)V","processChunkUnload":"Ldnp;a(Lnb;)V"},"baritone/launch/mixins/MixinClientPlayerEntity":{"livingTick":"Ldqb;k()V","net/minecraft/client/entity/player/ClientPlayerEntity.isPassenger()Z":"Ldqb;bg()Z","net/minecraft/client/entity/player/ClientPlayerEntity.onUpdateWalkingPlayer()V":"Ldqb;eE()V","net/minecraft/client/settings/KeyBinding.isKeyDown()Z":"Ldbk;d()Z","net/minecraft/entity/player/PlayerAbilities.allowFlying:Z":"Layg;c:Z","sendChatMessage":"Ldqb;f(Ljava/lang/String;)V","tick":"Ldqb;h()V","updateRidden":"Ldqb;aQ()V"},"baritone/launch/mixins/MixinCommandSuggestionHelper":{"func_228111_a_":"Ldcy;a()V"},"baritone/launch/mixins/MixinEntity":{"moveRelative":"Lakq;a(FLcvl;)V"},"baritone/launch/mixins/MixinItemStack":{"setDamage":"Lben;b(I)V"},"baritone/launch/mixins/MixinLivingEntity":{"jump":"Lakz;dq()V","net/minecraft/entity/LivingEntity.rotationYaw:F":"Lakz;p:F"},"baritone/launch/mixins/MixinLootContext":{"build":"Lcrx$a;a(Lcty;)Lcrx;","net/minecraft/server/MinecraftServer.func_229736_aP_()Lnet/minecraft/world/storage/loot/LootPredicateManager;":"Lnet/minecraft/server/MinecraftServer;aQ()Lcsc;","net/minecraft/server/MinecraftServer.getLootTableManager()Lnet/minecraft/world/storage/loot/LootTableManager;":"Lnet/minecraft/server/MinecraftServer;aP()Lcsb;","net/minecraft/world/server/ServerWorld.getServer()Lnet/minecraft/server/MinecraftServer;":"Lxd;p()Lnet/minecraft/server/MinecraftServer;"},"baritone/launch/mixins/MixinMinecraft":{"loadWorld(Lnet/minecraft/client/world/ClientWorld;)V":"Ldbn;a(Ldno;)V","net/minecraft/client/Minecraft.currentScreen:Lnet/minecraft/client/gui/screen/Screen;":"Ldbn;x:Ldgb;","net/minecraft/client/gui/screen/Screen.passEvents:Z":"Ldgb;passEvents:Z","runTick":"Ldbn;p()V","startTimerHackThread":"Ldbn;aC()V"},"baritone/launch/mixins/MixinNetworkManager":{"channelRead0":"Lkt;a(Lio/netty/channel/ChannelHandlerContext;Llt;)V","dispatchPacket":"Lkt;b(Llt;Lio/netty/util/concurrent/GenericFutureListener;)V","net/minecraft/network/NetworkManager.processPacket(Lnet/minecraft/network/IPacket;Lnet/minecraft/network/INetHandler;)V":"Lkt;a(Llt;Lky;)V"},"baritone/launch/mixins/MixinPlayerController":{"currentBlock":"d:Lfk;","isHittingBlock":"i:Z","syncCurrentPlayItem":"m()V"},"baritone/launch/mixins/MixinScreen":{"openLink":"openLink(Ljava/net/URI;)V"},"baritone/launch/mixins/MixinWorldRenderer":{"updateCameraAndRender":"Ldqr;a(Lcyl;FJZLdbb;Ldqn;Ldqs;Lb;)V"}},"searge":{"baritone/launch/mixins/MixinChunkArray":{"net.minecraft.client.multiplayer.ClientChunkProvider$ChunkArray":"net/minecraft/client/multiplayer/ClientChunkProvider$ChunkArray"},"baritone/launch/mixins/MixinClientPlayNetHandler":{"handleChunkData":"Lnet/minecraft/client/network/play/ClientPlayNetHandler;func_147263_a(Lnet/minecraft/network/play/server/SChunkDataPacket;)V","handleCombatEvent":"Lnet/minecraft/client/network/play/ClientPlayNetHandler;func_175098_a(Lnet/minecraft/network/play/server/SCombatPacket;)V","net/minecraft/client/Minecraft.displayGuiScreen(Lnet/minecraft/client/gui/screen/Screen;)V":"Lnet/minecraft/client/Minecraft;func_147108_a(Lnet/minecraft/client/gui/screen/Screen;)V","processChunkUnload":"Lnet/minecraft/client/network/play/ClientPlayNetHandler;func_184326_a(Lnet/minecraft/network/play/server/SUnloadChunkPacket;)V"},"baritone/launch/mixins/MixinClientPlayerEntity":{"livingTick":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_70636_d()V","net/minecraft/client/entity/player/ClientPlayerEntity.isPassenger()Z":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_184218_aH()Z","net/minecraft/client/entity/player/ClientPlayerEntity.onUpdateWalkingPlayer()V":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_175161_p()V","net/minecraft/client/settings/KeyBinding.isKeyDown()Z":"Lnet/minecraft/client/settings/KeyBinding;func_151470_d()Z","net/minecraft/entity/player/PlayerAbilities.allowFlying:Z":"Lnet/minecraft/entity/player/PlayerAbilities;field_75101_c:Z","sendChatMessage":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_71165_d(Ljava/lang/String;)V","tick":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_70071_h_()V","updateRidden":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_70098_U()V"},"baritone/launch/mixins/MixinCommandSuggestionHelper":{"func_228111_a_":"Lnet/minecraft/client/gui/CommandSuggestionHelper;func_228111_a_()V"},"baritone/launch/mixins/MixinEntity":{"moveRelative":"Lnet/minecraft/entity/Entity;func_213309_a(FLnet/minecraft/util/math/Vec3d;)V"},"baritone/launch/mixins/MixinItemStack":{"setDamage":"Lnet/minecraft/item/ItemStack;func_196085_b(I)V"},"baritone/launch/mixins/MixinLivingEntity":{"jump":"Lnet/minecraft/entity/LivingEntity;func_70664_aZ()V","net/minecraft/entity/LivingEntity.rotationYaw:F":"Lnet/minecraft/entity/LivingEntity;field_70177_z:F"},"baritone/launch/mixins/MixinLootContext":{"build":"Lnet/minecraft/world/storage/loot/LootContext$Builder;func_216022_a(Lnet/minecraft/world/storage/loot/LootParameterSet;)Lnet/minecraft/world/storage/loot/LootContext;","net/minecraft/server/MinecraftServer.func_229736_aP_()Lnet/minecraft/world/storage/loot/LootPredicateManager;":"Lnet/minecraft/server/MinecraftServer;func_229736_aP_()Lnet/minecraft/world/storage/loot/LootPredicateManager;","net/minecraft/server/MinecraftServer.getLootTableManager()Lnet/minecraft/world/storage/loot/LootTableManager;":"Lnet/minecraft/server/MinecraftServer;func_200249_aQ()Lnet/minecraft/world/storage/loot/LootTableManager;","net/minecraft/world/server/ServerWorld.getServer()Lnet/minecraft/server/MinecraftServer;":"Lnet/minecraft/world/server/ServerWorld;func_73046_m()Lnet/minecraft/server/MinecraftServer;"},"baritone/launch/mixins/MixinMinecraft":{"loadWorld(Lnet/minecraft/client/world/ClientWorld;)V":"Lnet/minecraft/client/Minecraft;func_71403_a(Lnet/minecraft/client/world/ClientWorld;)V","net/minecraft/client/Minecraft.currentScreen:Lnet/minecraft/client/gui/screen/Screen;":"Lnet/minecraft/client/Minecraft;field_71462_r:Lnet/minecraft/client/gui/screen/Screen;","net/minecraft/client/gui/screen/Screen.passEvents:Z":"Lnet/minecraft/client/gui/screen/Screen;passEvents:Z","runTick":"Lnet/minecraft/client/Minecraft;func_71407_l()V","startTimerHackThread":"Lnet/minecraft/client/Minecraft;func_71389_H()V"},"baritone/launch/mixins/MixinNetworkManager":{"channelRead0":"Lnet/minecraft/network/NetworkManager;channelRead0(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/IPacket;)V","dispatchPacket":"Lnet/minecraft/network/NetworkManager;func_150732_b(Lnet/minecraft/network/IPacket;Lio/netty/util/concurrent/GenericFutureListener;)V","net/minecraft/network/NetworkManager.processPacket(Lnet/minecraft/network/IPacket;Lnet/minecraft/network/INetHandler;)V":"Lnet/minecraft/network/NetworkManager;func_197664_a(Lnet/minecraft/network/IPacket;Lnet/minecraft/network/INetHandler;)V"},"baritone/launch/mixins/MixinPlayerController":{"currentBlock":"field_178895_c:Lnet/minecraft/util/math/BlockPos;","isHittingBlock":"field_78778_j:Z","syncCurrentPlayItem":"func_78750_j()V"},"baritone/launch/mixins/MixinScreen":{"openLink":"openLink(Ljava/net/URI;)V"},"baritone/launch/mixins/MixinWorldRenderer":{"updateCameraAndRender":"Lnet/minecraft/client/renderer/WorldRenderer;func_228426_a_(Lcom/mojang/blaze3d/matrix/MatrixStack;FJZLnet/minecraft/client/renderer/ActiveRenderInfo;Lnet/minecraft/client/renderer/GameRenderer;Lnet/minecraft/client/renderer/LightTexture;Lnet/minecraft/client/renderer/Matrix4f;)V"}}},"mappings":{"baritone/launch/mixins/MixinChunkArray":{"net.minecraft.client.multiplayer.ClientChunkProvider$ChunkArray":"net/minecraft/client/multiplayer/ClientChunkProvider$ChunkArray"},"baritone/launch/mixins/MixinClientPlayNetHandler":{"handleChunkData":"Lnet/minecraft/client/network/play/ClientPlayNetHandler;func_147263_a(Lnet/minecraft/network/play/server/SChunkDataPacket;)V","handleCombatEvent":"Lnet/minecraft/client/network/play/ClientPlayNetHandler;func_175098_a(Lnet/minecraft/network/play/server/SCombatPacket;)V","net/minecraft/client/Minecraft.displayGuiScreen(Lnet/minecraft/client/gui/screen/Screen;)V":"Lnet/minecraft/client/Minecraft;func_147108_a(Lnet/minecraft/client/gui/screen/Screen;)V","processChunkUnload":"Lnet/minecraft/client/network/play/ClientPlayNetHandler;func_184326_a(Lnet/minecraft/network/play/server/SUnloadChunkPacket;)V"},"baritone/launch/mixins/MixinClientPlayerEntity":{"livingTick":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_70636_d()V","net/minecraft/client/entity/player/ClientPlayerEntity.isPassenger()Z":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_184218_aH()Z","net/minecraft/client/entity/player/ClientPlayerEntity.onUpdateWalkingPlayer()V":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_175161_p()V","net/minecraft/client/settings/KeyBinding.isKeyDown()Z":"Lnet/minecraft/client/settings/KeyBinding;func_151470_d()Z","net/minecraft/entity/player/PlayerAbilities.allowFlying:Z":"Lnet/minecraft/entity/player/PlayerAbilities;field_75101_c:Z","sendChatMessage":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_71165_d(Ljava/lang/String;)V","tick":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_70071_h_()V","updateRidden":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_70098_U()V"},"baritone/launch/mixins/MixinCommandSuggestionHelper":{"func_228111_a_":"Lnet/minecraft/client/gui/CommandSuggestionHelper;func_228111_a_()V"},"baritone/launch/mixins/MixinEntity":{"moveRelative":"Lnet/minecraft/entity/Entity;func_213309_a(FLnet/minecraft/util/math/Vec3d;)V"},"baritone/launch/mixins/MixinItemStack":{"setDamage":"Lnet/minecraft/item/ItemStack;func_196085_b(I)V"},"baritone/launch/mixins/MixinLivingEntity":{"jump":"Lnet/minecraft/entity/LivingEntity;func_70664_aZ()V","net/minecraft/entity/LivingEntity.rotationYaw:F":"Lnet/minecraft/entity/LivingEntity;field_70177_z:F"},"baritone/launch/mixins/MixinLootContext":{"build":"Lnet/minecraft/world/storage/loot/LootContext$Builder;func_216022_a(Lnet/minecraft/world/storage/loot/LootParameterSet;)Lnet/minecraft/world/storage/loot/LootContext;","net/minecraft/server/MinecraftServer.func_229736_aP_()Lnet/minecraft/world/storage/loot/LootPredicateManager;":"Lnet/minecraft/server/MinecraftServer;func_229736_aP_()Lnet/minecraft/world/storage/loot/LootPredicateManager;","net/minecraft/server/MinecraftServer.getLootTableManager()Lnet/minecraft/world/storage/loot/LootTableManager;":"Lnet/minecraft/server/MinecraftServer;func_200249_aQ()Lnet/minecraft/world/storage/loot/LootTableManager;","net/minecraft/world/server/ServerWorld.getServer()Lnet/minecraft/server/MinecraftServer;":"Lnet/minecraft/world/server/ServerWorld;func_73046_m()Lnet/minecraft/server/MinecraftServer;"},"baritone/launch/mixins/MixinMinecraft":{"loadWorld(Lnet/minecraft/client/world/ClientWorld;)V":"Lnet/minecraft/client/Minecraft;func_71403_a(Lnet/minecraft/client/world/ClientWorld;)V","net/minecraft/client/Minecraft.currentScreen:Lnet/minecraft/client/gui/screen/Screen;":"Lnet/minecraft/client/Minecraft;field_71462_r:Lnet/minecraft/client/gui/screen/Screen;","net/minecraft/client/gui/screen/Screen.passEvents:Z":"Lnet/minecraft/client/gui/screen/Screen;passEvents:Z","runTick":"Lnet/minecraft/client/Minecraft;func_71407_l()V","startTimerHackThread":"Lnet/minecraft/client/Minecraft;func_71389_H()V"},"baritone/launch/mixins/MixinNetworkManager":{"channelRead0":"Lnet/minecraft/network/NetworkManager;channelRead0(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/IPacket;)V","dispatchPacket":"Lnet/minecraft/network/NetworkManager;func_150732_b(Lnet/minecraft/network/IPacket;Lio/netty/util/concurrent/GenericFutureListener;)V","net/minecraft/network/NetworkManager.processPacket(Lnet/minecraft/network/IPacket;Lnet/minecraft/network/INetHandler;)V":"Lnet/minecraft/network/NetworkManager;func_197664_a(Lnet/minecraft/network/IPacket;Lnet/minecraft/network/INetHandler;)V"},"baritone/launch/mixins/MixinPlayerController":{"currentBlock":"field_178895_c:Lnet/minecraft/util/math/BlockPos;","isHittingBlock":"field_78778_j:Z","syncCurrentPlayItem":"func_78750_j()V"},"baritone/launch/mixins/MixinScreen":{"openLink":"openLink(Ljava/net/URI;)V"},"baritone/launch/mixins/MixinWorldRenderer":{"updateCameraAndRender":"Lnet/minecraft/client/renderer/WorldRenderer;func_228426_a_(Lcom/mojang/blaze3d/matrix/MatrixStack;FJZLnet/minecraft/client/renderer/ActiveRenderInfo;Lnet/minecraft/client/renderer/GameRenderer;Lnet/minecraft/client/renderer/LightTexture;Lnet/minecraft/client/renderer/Matrix4f;)V"}}}
---
> {"data":{"notch":{"baritone/launch/mixins/MixinChunkArray":{"net.minecraft.client.multiplayer.ClientChunkProvider$ChunkArray":"dnm$a"},"baritone/launch/mixins/MixinClientPlayNetHandler":{"handleChunkData":"Ldnp;a(Lnf;)V","handleCombatEvent":"Ldnp;a(Lnt;)V","net/minecraft/client/Minecraft.displayGuiScreen(Lnet/minecraft/client/gui/screen/Screen;)V":"Ldbn;a(Ldgb;)V","processChunkUnload":"Ldnp;a(Lnb;)V"},"baritone/launch/mixins/MixinClientPlayerEntity":{"livingTick":"Ldqb;k()V","net/minecraft/client/entity/player/ClientPlayerEntity.onUpdateWalkingPlayer()V":"Ldqb;eE()V","net/minecraft/client/settings/KeyBinding.isKeyDown()Z":"Ldbk;d()Z","net/minecraft/entity/player/PlayerAbilities.allowFlying:Z":"Layg;c:Z","sendChatMessage":"Ldqb;f(Ljava/lang/String;)V","tick":"Ldqb;h()V","updateRidden":"Ldqb;aQ()V"},"baritone/launch/mixins/MixinCommandSuggestionHelper":{"func_228111_a_":"Ldcy;a()V"},"baritone/launch/mixins/MixinEntity":{"moveRelative":"Lakq;a(FLcvl;)V"},"baritone/launch/mixins/MixinItemStack":{"setDamage":"Lben;b(I)V"},"baritone/launch/mixins/MixinLivingEntity":{"jump":"Lakz;dq()V","net/minecraft/entity/LivingEntity.rotationYaw:F":"Lakz;p:F"},"baritone/launch/mixins/MixinLootContext":{"build":"Lcrx$a;a(Lcty;)Lcrx;","net/minecraft/server/MinecraftServer.func_229736_aP_()Lnet/minecraft/world/storage/loot/LootPredicateManager;":"Lnet/minecraft/server/MinecraftServer;aQ()Lcsc;","net/minecraft/server/MinecraftServer.getLootTableManager()Lnet/minecraft/world/storage/loot/LootTableManager;":"Lnet/minecraft/server/MinecraftServer;aP()Lcsb;","net/minecraft/world/server/ServerWorld.getServer()Lnet/minecraft/server/MinecraftServer;":"Lxd;p()Lnet/minecraft/server/MinecraftServer;"},"baritone/launch/mixins/MixinMinecraft":{"loadWorld(Lnet/minecraft/client/world/ClientWorld;)V":"Ldbn;a(Ldno;)V","net/minecraft/client/Minecraft.currentScreen:Lnet/minecraft/client/gui/screen/Screen;":"Ldbn;x:Ldgb;","net/minecraft/client/gui/screen/Screen.passEvents:Z":"Ldgb;passEvents:Z","runTick":"Ldbn;p()V","startTimerHackThread":"Ldbn;aC()V"},"baritone/launch/mixins/MixinNetworkManager":{"channelRead0":"Lkt;a(Lio/netty/channel/ChannelHandlerContext;Llt;)V","dispatchPacket":"Lkt;b(Llt;Lio/netty/util/concurrent/GenericFutureListener;)V","net/minecraft/network/NetworkManager.processPacket(Lnet/minecraft/network/IPacket;Lnet/minecraft/network/INetHandler;)V":"Lkt;a(Llt;Lky;)V"},"baritone/launch/mixins/MixinPlayerController":{"currentBlock":"d:Lfk;","isHittingBlock":"i:Z","syncCurrentPlayItem":"m()V"},"baritone/launch/mixins/MixinScreen":{"openLink":"openLink(Ljava/net/URI;)V"},"baritone/launch/mixins/MixinWorldRenderer":{"updateCameraAndRender":"Ldqr;a(Lcyl;FJZLdbb;Ldqn;Ldqs;Lb;)V"}},"searge":{"baritone/launch/mixins/MixinChunkArray":{"net.minecraft.client.multiplayer.ClientChunkProvider$ChunkArray":"net/minecraft/client/multiplayer/ClientChunkProvider$ChunkArray"},"baritone/launch/mixins/MixinClientPlayNetHandler":{"handleChunkData":"Lnet/minecraft/client/network/play/ClientPlayNetHandler;func_147263_a(Lnet/minecraft/network/play/server/SChunkDataPacket;)V","handleCombatEvent":"Lnet/minecraft/client/network/play/ClientPlayNetHandler;func_175098_a(Lnet/minecraft/network/play/server/SCombatPacket;)V","net/minecraft/client/Minecraft.displayGuiScreen(Lnet/minecraft/client/gui/screen/Screen;)V":"Lnet/minecraft/client/Minecraft;func_147108_a(Lnet/minecraft/client/gui/screen/Screen;)V","processChunkUnload":"Lnet/minecraft/client/network/play/ClientPlayNetHandler;func_184326_a(Lnet/minecraft/network/play/server/SUnloadChunkPacket;)V"},"baritone/launch/mixins/MixinClientPlayerEntity":{"livingTick":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_70636_d()V","net/minecraft/client/entity/player/ClientPlayerEntity.onUpdateWalkingPlayer()V":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_175161_p()V","net/minecraft/client/settings/KeyBinding.isKeyDown()Z":"Lnet/minecraft/client/settings/KeyBinding;func_151470_d()Z","net/minecraft/entity/player/PlayerAbilities.allowFlying:Z":"Lnet/minecraft/entity/player/PlayerAbilities;field_75101_c:Z","sendChatMessage":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_71165_d(Ljava/lang/String;)V","tick":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_70071_h_()V","updateRidden":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_70098_U()V"},"baritone/launch/mixins/MixinCommandSuggestionHelper":{"func_228111_a_":"Lnet/minecraft/client/gui/CommandSuggestionHelper;func_228111_a_()V"},"baritone/launch/mixins/MixinEntity":{"moveRelative":"Lnet/minecraft/entity/Entity;func_213309_a(FLnet/minecraft/util/math/Vec3d;)V"},"baritone/launch/mixins/MixinItemStack":{"setDamage":"Lnet/minecraft/item/ItemStack;func_196085_b(I)V"},"baritone/launch/mixins/MixinLivingEntity":{"jump":"Lnet/minecraft/entity/LivingEntity;func_70664_aZ()V","net/minecraft/entity/LivingEntity.rotationYaw:F":"Lnet/minecraft/entity/LivingEntity;field_70177_z:F"},"baritone/launch/mixins/MixinLootContext":{"build":"Lnet/minecraft/world/storage/loot/LootContext$Builder;func_216022_a(Lnet/minecraft/world/storage/loot/LootParameterSet;)Lnet/minecraft/world/storage/loot/LootContext;","net/minecraft/server/MinecraftServer.func_229736_aP_()Lnet/minecraft/world/storage/loot/LootPredicateManager;":"Lnet/minecraft/server/MinecraftServer;func_229736_aP_()Lnet/minecraft/world/storage/loot/LootPredicateManager;","net/minecraft/server/MinecraftServer.getLootTableManager()Lnet/minecraft/world/storage/loot/LootTableManager;":"Lnet/minecraft/server/MinecraftServer;func_200249_aQ()Lnet/minecraft/world/storage/loot/LootTableManager;","net/minecraft/world/server/ServerWorld.getServer()Lnet/minecraft/server/MinecraftServer;":"Lnet/minecraft/world/server/ServerWorld;func_73046_m()Lnet/minecraft/server/MinecraftServer;"},"baritone/launch/mixins/MixinMinecraft":{"loadWorld(Lnet/minecraft/client/world/ClientWorld;)V":"Lnet/minecraft/client/Minecraft;func_71403_a(Lnet/minecraft/client/world/ClientWorld;)V","net/minecraft/client/Minecraft.currentScreen:Lnet/minecraft/client/gui/screen/Screen;":"Lnet/minecraft/client/Minecraft;field_71462_r:Lnet/minecraft/client/gui/screen/Screen;","net/minecraft/client/gui/screen/Screen.passEvents:Z":"Lnet/minecraft/client/gui/screen/Screen;passEvents:Z","runTick":"Lnet/minecraft/client/Minecraft;func_71407_l()V","startTimerHackThread":"Lnet/minecraft/client/Minecraft;func_71389_H()V"},"baritone/launch/mixins/MixinNetworkManager":{"channelRead0":"Lnet/minecraft/network/NetworkManager;channelRead0(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/IPacket;)V","dispatchPacket":"Lnet/minecraft/network/NetworkManager;func_150732_b(Lnet/minecraft/network/IPacket;Lio/netty/util/concurrent/GenericFutureListener;)V","net/minecraft/network/NetworkManager.processPacket(Lnet/minecraft/network/IPacket;Lnet/minecraft/network/INetHandler;)V":"Lnet/minecraft/network/NetworkManager;func_197664_a(Lnet/minecraft/network/IPacket;Lnet/minecraft/network/INetHandler;)V"},"baritone/launch/mixins/MixinPlayerController":{"currentBlock":"field_178895_c:Lnet/minecraft/util/math/BlockPos;","isHittingBlock":"field_78778_j:Z","syncCurrentPlayItem":"func_78750_j()V"},"baritone/launch/mixins/MixinScreen":{"openLink":"openLink(Ljava/net/URI;)V"},"baritone/launch/mixins/MixinWorldRenderer":{"updateCameraAndRender":"Lnet/minecraft/client/renderer/WorldRenderer;func_228426_a_(Lcom/mojang/blaze3d/matrix/MatrixStack;FJZLnet/minecraft/client/renderer/ActiveRenderInfo;Lnet/minecraft/client/renderer/GameRenderer;Lnet/minecraft/client/renderer/LightTexture;Lnet/minecraft/client/renderer/Matrix4f;)V"}}},"mappings":{"baritone/launch/mixins/MixinChunkArray":{"net.minecraft.client.multiplayer.ClientChunkProvider$ChunkArray":"net/minecraft/client/multiplayer/ClientChunkProvider$ChunkArray"},"baritone/launch/mixins/MixinClientPlayNetHandler":{"handleChunkData":"Lnet/minecraft/client/network/play/ClientPlayNetHandler;func_147263_a(Lnet/minecraft/network/play/server/SChunkDataPacket;)V","handleCombatEvent":"Lnet/minecraft/client/network/play/ClientPlayNetHandler;func_175098_a(Lnet/minecraft/network/play/server/SCombatPacket;)V","net/minecraft/client/Minecraft.displayGuiScreen(Lnet/minecraft/client/gui/screen/Screen;)V":"Lnet/minecraft/client/Minecraft;func_147108_a(Lnet/minecraft/client/gui/screen/Screen;)V","processChunkUnload":"Lnet/minecraft/client/network/play/ClientPlayNetHandler;func_184326_a(Lnet/minecraft/network/play/server/SUnloadChunkPacket;)V"},"baritone/launch/mixins/MixinClientPlayerEntity":{"livingTick":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_70636_d()V","net/minecraft/client/entity/player/ClientPlayerEntity.onUpdateWalkingPlayer()V":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_175161_p()V","net/minecraft/client/settings/KeyBinding.isKeyDown()Z":"Lnet/minecraft/client/settings/KeyBinding;func_151470_d()Z","net/minecraft/entity/player/PlayerAbilities.allowFlying:Z":"Lnet/minecraft/entity/player/PlayerAbilities;field_75101_c:Z","sendChatMessage":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_71165_d(Ljava/lang/String;)V","tick":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_70071_h_()V","updateRidden":"Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_70098_U()V"},"baritone/launch/mixins/MixinCommandSuggestionHelper":{"func_228111_a_":"Lnet/minecraft/client/gui/CommandSuggestionHelper;func_228111_a_()V"},"baritone/launch/mixins/MixinEntity":{"moveRelative":"Lnet/minecraft/entity/Entity;func_213309_a(FLnet/minecraft/util/math/Vec3d;)V"},"baritone/launch/mixins/MixinItemStack":{"setDamage":"Lnet/minecraft/item/ItemStack;func_196085_b(I)V"},"baritone/launch/mixins/MixinLivingEntity":{"jump":"Lnet/minecraft/entity/LivingEntity;func_70664_aZ()V","net/minecraft/entity/LivingEntity.rotationYaw:F":"Lnet/minecraft/entity/LivingEntity;field_70177_z:F"},"baritone/launch/mixins/MixinLootContext":{"build":"Lnet/minecraft/world/storage/loot/LootContext$Builder;func_216022_a(Lnet/minecraft/world/storage/loot/LootParameterSet;)Lnet/minecraft/world/storage/loot/LootContext;","net/minecraft/server/MinecraftServer.func_229736_aP_()Lnet/minecraft/world/storage/loot/LootPredicateManager;":"Lnet/minecraft/server/MinecraftServer;func_229736_aP_()Lnet/minecraft/world/storage/loot/LootPredicateManager;","net/minecraft/server/MinecraftServer.getLootTableManager()Lnet/minecraft/world/storage/loot/LootTableManager;":"Lnet/minecraft/server/MinecraftServer;func_200249_aQ()Lnet/minecraft/world/storage/loot/LootTableManager;","net/minecraft/world/server/ServerWorld.getServer()Lnet/minecraft/server/MinecraftServer;":"Lnet/minecraft/world/server/ServerWorld;func_73046_m()Lnet/minecraft/server/MinecraftServer;"},"baritone/launch/mixins/MixinMinecraft":{"loadWorld(Lnet/minecraft/client/world/ClientWorld;)V":"Lnet/minecraft/client/Minecraft;func_71403_a(Lnet/minecraft/client/world/ClientWorld;)V","net/minecraft/client/Minecraft.currentScreen:Lnet/minecraft/client/gui/screen/Screen;":"Lnet/minecraft/client/Minecraft;field_71462_r:Lnet/minecraft/client/gui/screen/Screen;","net/minecraft/client/gui/screen/Screen.passEvents:Z":"Lnet/minecraft/client/gui/screen/Screen;passEvents:Z","runTick":"Lnet/minecraft/client/Minecraft;func_71407_l()V","startTimerHackThread":"Lnet/minecraft/client/Minecraft;func_71389_H()V"},"baritone/launch/mixins/MixinNetworkManager":{"channelRead0":"Lnet/minecraft/network/NetworkManager;channelRead0(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/IPacket;)V","dispatchPacket":"Lnet/minecraft/network/NetworkManager;func_150732_b(Lnet/minecraft/network/IPacket;Lio/netty/util/concurrent/GenericFutureListener;)V","net/minecraft/network/NetworkManager.processPacket(Lnet/minecraft/network/IPacket;Lnet/minecraft/network/INetHandler;)V":"Lnet/minecraft/network/NetworkManager;func_197664_a(Lnet/minecraft/network/IPacket;Lnet/minecraft/network/INetHandler;)V"},"baritone/launch/mixins/MixinPlayerController":{"currentBlock":"field_178895_c:Lnet/minecraft/util/math/BlockPos;","isHittingBlock":"field_78778_j:Z","syncCurrentPlayItem":"func_78750_j()V"},"baritone/launch/mixins/MixinScreen":{"openLink":"openLink(Ljava/net/URI;)V"},"baritone/launch/mixins/MixinWorldRenderer":{"updateCameraAndRender":"Lnet/minecraft/client/renderer/WorldRenderer;func_228426_a_(Lcom/mojang/blaze3d/matrix/MatrixStack;FJZLnet/minecraft/client/renderer/ActiveRenderInfo;Lnet/minecraft/client/renderer/GameRenderer;Lnet/minecraft/client/renderer/LightTexture;Lnet/minecraft/client/renderer/Matrix4f;)V"}}}

Modified settings

None

Final checklist

  • I know how to properly use check boxes
  • I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
  • I have included logs, exceptions and / or steps to reproduce the issue.
  • I have not used any OwO's or UwU's in this issue.
commented

I'm having the same issue compiling with no changes on 1.16.2, the freeLook setting seems to make it behave differently, although still messed up.

commented

Launch game (not with the run client task) does this mean Forge?

The forge task runClient works fine for some reason, but subbing in the compiled version for either vanilla, forge, or impact, makes the game behave weird.

commented

    @Inject(
            method = "tick",
            at = @At(
                    value = "INVOKE",
                    target = "net/minecraft/client/entity/player/ClientPlayerEntity.isPassenger()Z",
                    shift = At.Shift.BY,
                    by = -3
            )
    )
    private void onPreUpdate(CallbackInfo ci) {
        IBaritone baritone = BaritoneAPI.getProvider().getBaritoneForPlayer((ClientPlayerEntity) (Object) this);
        if (baritone != null) {
            baritone.getGameEventHandler().onPlayerUpdate(new PlayerUpdateEvent(EventState.PRE));
        }
    }

and that would certainly do it because it isn't getting the player update event anymore, if isPassenger is gone

This was the only difference between the jar files. Is it possible that there were changes in the Impact repo?

commented

The issue seemed to be fixed when I compiled using the docker container under WSL 2 (ubuntu), not sure what factors are making it work there but not natively on Windows.

commented

Issue still happens outside of the docker container on Ubuntu and OpenJDK 8

commented

Launch game (not with the run client task) does this mean Forge?

commented

It's happening to me with Forge, runClient doesn't even work for me so I don't use it.
The forge-api.jar from the latest release works fine but building with 0 code changes causes weirdness.

commented

And all the .class flies are the same, the only difference is in refmap.json you're certain?

commented

Code_kuXDvXQ3Mu
that's what i'm seeing on my end

commented

 leijurvs-MacBook-Pro:~ leijurv$ pbpaste | jq -S . > a
 leijurvs-MacBook-Pro:~ leijurv$ pbpaste | jq -S . > b
 leijurvs-MacBook-Pro:~ leijurv$ diff a b
15d14
<         "net/minecraft/client/entity/player/ClientPlayerEntity.isPassenger()Z": "Ldqb;bg()Z",
78d76
<         "net/minecraft/client/entity/player/ClientPlayerEntity.isPassenger()Z": "Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_184218_aH()Z",
142d139
<       "net/minecraft/client/entity/player/ClientPlayerEntity.isPassenger()Z": "Lnet/minecraft/client/entity/player/ClientPlayerEntity;func_184218_aH()Z",
 leijurvs-MacBook-Pro:~ leijurv$

looks like the difference is in ClientPlayerEntity.isPassenger

commented

    @Inject(
            method = "tick",
            at = @At(
                    value = "INVOKE",
                    target = "net/minecraft/client/entity/player/ClientPlayerEntity.isPassenger()Z",
                    shift = At.Shift.BY,
                    by = -3
            )
    )
    private void onPreUpdate(CallbackInfo ci) {
        IBaritone baritone = BaritoneAPI.getProvider().getBaritoneForPlayer((ClientPlayerEntity) (Object) this);
        if (baritone != null) {
            baritone.getGameEventHandler().onPlayerUpdate(new PlayerUpdateEvent(EventState.PRE));
        }
    }

and that would certainly do it because it isn't getting the player update event anymore, if isPassenger is gone

commented
7z x baritone-api-forge-1.6.1.jar -ocringe\
copy /Y non-shit-refmap.json cringe\mixins.baritone.refmap.json
del baritone-api-forge-1.6.1.jar
cd cringe\
7z u -tzip ..\baritone-api-forge-1.6.1.jar .\*
cd ..\..\..\

Temporary fix for real gamers

commented

ew, windows :sick:

commented

ew, windows :sick:

image