From fbb6a48349cccb54cd1118fd3b52096be2e6301a Mon Sep 17 00:00:00 2001 From: fullwall Date: Sun, 25 Aug 2024 02:15:40 +0800 Subject: [PATCH] Remove villager reset pitch code --- .../citizensnpcs/nms/v1_19_R3/entity/VillagerController.java | 3 --- .../citizensnpcs/nms/v1_20_R4/entity/VillagerController.java | 3 --- .../citizensnpcs/nms/v1_21_R1/entity/VillagerController.java | 3 --- 3 files changed, 9 deletions(-) diff --git a/v1_19_R3/src/main/java/net/citizensnpcs/nms/v1_19_R3/entity/VillagerController.java b/v1_19_R3/src/main/java/net/citizensnpcs/nms/v1_19_R3/entity/VillagerController.java index 365e5abef..eaf934389 100644 --- a/v1_19_R3/src/main/java/net/citizensnpcs/nms/v1_19_R3/entity/VillagerController.java +++ b/v1_19_R3/src/main/java/net/citizensnpcs/nms/v1_19_R3/entity/VillagerController.java @@ -103,9 +103,6 @@ public class VillagerController extends MobEntityController { super.customServerAiStep(); if (npc != null) { npc.update(); - if (npc.data().get(NPC.Metadata.RESET_PITCH_ON_TICK, true)) { - NMS.setPitch(getBukkitEntity(), 0); - } } } diff --git a/v1_20_R4/src/main/java/net/citizensnpcs/nms/v1_20_R4/entity/VillagerController.java b/v1_20_R4/src/main/java/net/citizensnpcs/nms/v1_20_R4/entity/VillagerController.java index e497a72e3..e350fe7dc 100644 --- a/v1_20_R4/src/main/java/net/citizensnpcs/nms/v1_20_R4/entity/VillagerController.java +++ b/v1_20_R4/src/main/java/net/citizensnpcs/nms/v1_20_R4/entity/VillagerController.java @@ -101,9 +101,6 @@ public class VillagerController extends MobEntityController { super.customServerAiStep(); if (npc != null) { npc.update(); - if (npc.data().get(NPC.Metadata.RESET_PITCH_ON_TICK, true)) { - NMS.setPitch(getBukkitEntity(), 0); - } } } diff --git a/v1_21_R1/src/main/java/net/citizensnpcs/nms/v1_21_R1/entity/VillagerController.java b/v1_21_R1/src/main/java/net/citizensnpcs/nms/v1_21_R1/entity/VillagerController.java index e72dfc2fc..ab0668249 100644 --- a/v1_21_R1/src/main/java/net/citizensnpcs/nms/v1_21_R1/entity/VillagerController.java +++ b/v1_21_R1/src/main/java/net/citizensnpcs/nms/v1_21_R1/entity/VillagerController.java @@ -109,9 +109,6 @@ public class VillagerController extends MobEntityController { super.customServerAiStep(); if (npc != null) { npc.update(); - if (npc.data().get(NPC.Metadata.RESET_PITCH_ON_TICK, true)) { - NMS.setPitch(getBukkitEntity(), 0); - } } }