提高取消手部渲染事件的优先级

This commit is contained in:
Atsuishio 2025-04-07 14:40:19 +08:00 committed by Light_Quanta
parent ad2fd3580a
commit e75f94eb1e
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -46,6 +46,7 @@ import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.phys.BlockHitResult;
import net.minecraft.world.phys.Vec3;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.bus.api.EventPriority;
import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.fml.common.EventBusSubscriber;
import net.neoforged.neoforge.capabilities.Capabilities;
@ -945,7 +946,7 @@ public class ClientEventHandler {
}
}
@SubscribeEvent
@SubscribeEvent(priority = EventPriority.HIGHEST)
public static void onRenderHand(RenderHandEvent event) {
Player player = Minecraft.getInstance().player;
if (player == null) return;