Skip to content

Commit

Permalink
Override an ocelot method
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Feb 18, 2018
1 parent 1bc5a47 commit d14119b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ public boolean d(NBTTagCompound save) {
return npc == null ? super.d(save) : false;
}

@Override
protected void df() {
if (npc == null) {
super.df();
}
}

@Override
public void e(float f, float f1) {
if (npc == null || !npc.isFlyable()) {
Expand Down Expand Up @@ -189,6 +196,7 @@ public boolean m_() {
return false;
}
}

}

public static class OcelotNPC extends CraftOcelot implements NPCHolder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ public boolean d(NBTTagCompound save) {
return npc == null ? super.d(save) : false;
}

@Override
protected void di() {
if (npc == null) {
super.di();
}
}

@Override
public void e(float f, float f1) {
if (npc == null || !npc.isFlyable()) {
Expand Down Expand Up @@ -190,6 +197,7 @@ public boolean m_() {
return false;
}
}

}

public static class OcelotNPC extends CraftOcelot implements NPCHolder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -543,9 +543,7 @@ public void setSkinPersistent(String skinName, String signature, String data) {
}

private static final String[][] EMPTY_PROGRESS = new String[0][0];

private static final float EPSILON = 0.005F;

private static final Location LOADED_LOCATION = new Location(null, 0, 0, 0);
private static final Field PROGRESS_TRACKER_FIELD = NMS.getField(AdvancementProgress.class, "b");
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ public boolean d(NBTTagCompound save) {
return npc == null ? super.d(save) : false;
}

@Override
protected void dm() {
if (npc == null) {
super.dm();
}
}

@Override
public void e(float f, float f1) {
if (npc == null || !npc.isFlyable()) {
Expand Down

0 comments on commit d14119b

Please sign in to comment.