Update for 1.4.4

This commit is contained in:
Jeremy Schroeder 2012-11-14 11:30:45 -05:00
parent 6415aa1bfc
commit 49ac997dfd
4 changed files with 14 additions and 14 deletions

View File

@ -53,9 +53,9 @@ public class CitizensVillagerNPC extends CitizensMobNPC {
}
@Override
public boolean c(EntityHuman entityhuman) {
public boolean a(EntityHuman entityhuman) {
if (npc == null)
return super.c(entityhuman);
return super.a(entityhuman);
return false; // block trades
}

View File

@ -45,8 +45,8 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder {
}
@Override
public float by() {
return super.by() * npc.getNavigator().getDefaultParameters().speed();
public float bB() {
return super.bB() * npc.getNavigator().getDefaultParameters().speed();
}
@Override
@ -146,7 +146,7 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder {
private void moveOnCurrentHeading() {
NMS.updateAI(this);
// taken from EntityLiving update method
if (bG) {
if (bE) {
/* boolean inLiquid = H() || J();
if (inLiquid) {
motY += 0.04;
@ -159,12 +159,12 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder {
bW = 0;
bD *= 0.98F;
bE *= 0.98F;
bH *= 0.98F;
bF *= 0.9F;
float prev = aM;
aM *= by();
e(bD, bE); // movement method
aM *= bB();
e(bD, bC); // movement method
aM = prev;
NMS.setHeadYaw(this, yaw);
}

View File

@ -40,10 +40,10 @@ public class LookClose extends Trait implements Toggleable, CommandConfigurable
}
public void lookClose(boolean lookClose) {
enabled = lookClose;
}
enabled = lookClose;
}
private void findNewTarget() {
private void findNewTarget() {
List<Entity> nearby = npc.getBukkitEntity().getNearbyEntities(range, range, range);
final Location npcLocation = npc.getBukkitEntity().getLocation();
Collections.sort(nearby, new Comparator<Entity>() {

View File

@ -100,7 +100,7 @@ public class NMS {
handle.motZ *= 0.6D;
}
int fireAspectLevel = EnchantmentManager.getFireAspectEnchantmentLevel(handle, target);
int fireAspectLevel = EnchantmentManager.getFireAspectEnchantmentLevel(handle);
if (fireAspectLevel > 0)
target.setOnFire(fireAspectLevel * 4);
@ -166,7 +166,7 @@ public class NMS {
}
public static void look(ControllerLook controllerLook, EntityLiving handle, EntityLiving target) {
controllerLook.a(target, 10.0F, handle.bm());
controllerLook.a(target, 10.0F, handle.bp());
}
public static void look(EntityLiving handle, float yaw, float pitch) {
@ -281,7 +281,7 @@ public class NMS {
}
public static void updateSenses(EntityLiving entity) {
entity.az().a();
entity.aA().a();
}
static {