mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-28 18:21:19 +01:00
Set wolf step height to 1
This commit is contained in:
parent
cf4c6f851d
commit
cc68593afe
@ -73,6 +73,7 @@ public class WolfController extends MobEntityController {
|
||||
public void bn() {
|
||||
super.bn();
|
||||
if (npc != null) {
|
||||
NMS.setStepHeight(this, 1);
|
||||
npc.update();
|
||||
}
|
||||
}
|
||||
@ -82,17 +83,9 @@ public class WolfController extends MobEntityController {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
// it will not stop the NPC from moving.
|
||||
super.collide(entity);
|
||||
if (npc != null)
|
||||
if (npc != null) {
|
||||
Util.callCollisionEvent(npc, entity.getBukkitEntity());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean h_() {
|
||||
if (npc == null || !npc.isFlyable()) {
|
||||
return super.h_();
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -137,6 +130,15 @@ public class WolfController extends MobEntityController {
|
||||
public NPC getNPC() {
|
||||
return npc;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean h_() {
|
||||
if (npc == null || !npc.isFlyable()) {
|
||||
return super.h_();
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class WolfNPC extends CraftWolf implements NPCHolder {
|
||||
|
Loading…
Reference in New Issue
Block a user