mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-13 19:01:53 +01:00
Remove villager force head yaw setting
This commit is contained in:
parent
d968384d58
commit
bc9374d30c
@ -55,7 +55,7 @@ public class Util {
|
||||
if (at == null || entity == null || entity.getWorld() != at.getWorld())
|
||||
return;
|
||||
if (at instanceof LivingEntity) {
|
||||
faceLocation(entity, ((LivingEntity) at).getEyeLocation());
|
||||
NMS.look(entity, at);
|
||||
} else {
|
||||
faceLocation(entity, at.getLocation(AT_LOCATION));
|
||||
}
|
||||
|
@ -13,7 +13,6 @@ import net.citizensnpcs.api.npc.NPC;
|
||||
import net.citizensnpcs.nms.v1_10_R1.util.NMSImpl;
|
||||
import net.citizensnpcs.npc.CitizensNPC;
|
||||
import net.citizensnpcs.npc.ai.NPCHolder;
|
||||
import net.citizensnpcs.util.NMS;
|
||||
import net.citizensnpcs.util.Util;
|
||||
import net.minecraft.server.v1_10_R1.BlockPosition;
|
||||
import net.minecraft.server.v1_10_R1.EntityHuman;
|
||||
@ -206,7 +205,6 @@ public class VillagerController extends MobEntityController {
|
||||
public void M() {
|
||||
super.M();
|
||||
if (npc != null) {
|
||||
NMS.setHeadYaw(getBukkitEntity(), yaw);
|
||||
npc.update();
|
||||
}
|
||||
}
|
||||
|
@ -111,9 +111,7 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
|
||||
super.A_();
|
||||
if (npc == null)
|
||||
return;
|
||||
|
||||
livingEntityBaseTick();
|
||||
|
||||
livingEntityBaseTick();
|
||||
if (updateCounter + 1 > Setting.PACKET_UPDATE_DELAY.asInt()) {
|
||||
updateEffects = true;
|
||||
}
|
||||
@ -323,6 +321,7 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
|
||||
}
|
||||
|
||||
public void livingEntityBaseTick() {
|
||||
cA();
|
||||
this.aC = this.aD;
|
||||
this.aJ = this.aK;
|
||||
if (this.hurtTicks > 0) {
|
||||
|
@ -169,7 +169,6 @@ public class EvokerController extends MobEntityController {
|
||||
public void M() {
|
||||
super.M();
|
||||
if (npc != null) {
|
||||
NMS.setHeadYaw(getBukkitEntity(), yaw);
|
||||
npc.update();
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,6 @@ import net.citizensnpcs.api.npc.NPC;
|
||||
import net.citizensnpcs.nms.v1_11_R1.util.NMSImpl;
|
||||
import net.citizensnpcs.npc.CitizensNPC;
|
||||
import net.citizensnpcs.npc.ai.NPCHolder;
|
||||
import net.citizensnpcs.util.NMS;
|
||||
import net.citizensnpcs.util.Util;
|
||||
import net.minecraft.server.v1_11_R1.BlockPosition;
|
||||
import net.minecraft.server.v1_11_R1.EntityHuman;
|
||||
@ -212,7 +211,6 @@ public class VillagerController extends MobEntityController {
|
||||
public void M() {
|
||||
super.M();
|
||||
if (npc != null) {
|
||||
NMS.setHeadYaw(getBukkitEntity(), yaw);
|
||||
npc.update();
|
||||
}
|
||||
}
|
||||
|
@ -13,7 +13,6 @@ import net.citizensnpcs.api.npc.NPC;
|
||||
import net.citizensnpcs.nms.v1_11_R1.util.NMSImpl;
|
||||
import net.citizensnpcs.npc.CitizensNPC;
|
||||
import net.citizensnpcs.npc.ai.NPCHolder;
|
||||
import net.citizensnpcs.util.NMS;
|
||||
import net.citizensnpcs.util.Util;
|
||||
import net.minecraft.server.v1_11_R1.BlockPosition;
|
||||
import net.minecraft.server.v1_11_R1.EntityVindicator;
|
||||
@ -180,7 +179,6 @@ public class VindicatorController extends MobEntityController {
|
||||
public void M() {
|
||||
super.M();
|
||||
if (npc != null) {
|
||||
NMS.setHeadYaw(getBukkitEntity(), yaw);
|
||||
npc.update();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user