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