mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-23 01:27:33 +01:00
Try to avoid defaulting to 0 yaw
This commit is contained in:
parent
d47a7e88ad
commit
3634bce18e
@ -294,11 +294,6 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
|
||||
return skinTracker;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected float h(float f, float f1) {
|
||||
return f1;
|
||||
}
|
||||
|
||||
private void initialise(MinecraftServer minecraftServer) {
|
||||
Socket socket = new EmptySocket();
|
||||
NetworkManager conn = null;
|
||||
|
@ -41,6 +41,16 @@ public class MinecartRideableController extends MobEntityController {
|
||||
this.npc = (CitizensNPC) npc;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void A_() {
|
||||
if (npc != null) {
|
||||
npc.update();
|
||||
NMSImpl.minecartItemLogic(this);
|
||||
} else {
|
||||
super.A_();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
@ -97,16 +107,6 @@ public class MinecartRideableController extends MobEntityController {
|
||||
public NPC getNPC() {
|
||||
return npc;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void A_() {
|
||||
if (npc != null) {
|
||||
npc.update();
|
||||
NMSImpl.minecartItemLogic(this);
|
||||
} else {
|
||||
super.A_();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class MinecartRideableNPC extends CraftMinecartRideable implements NPCHolder {
|
||||
|
Loading…
Reference in New Issue
Block a user