优化mixin代码

This commit is contained in:
17146 2024-05-20 16:59:42 +08:00
parent 67cdecd6c4
commit a08c226448

View file

@ -23,7 +23,7 @@ public class MouseHandlerMixin {
if (mc.player != null && !mc.player.getMainHandItem().isEmpty() && mc.options.getCameraType() == CameraType.FIRST_PERSON) {
Player player = Minecraft.getInstance().player;
Player player = mc.player;
ItemStack stack = mc.player.getMainHandItem();
float fov = ((float) player.getPersistentData().getDouble("fov"));