Skip to content

Commit 723255b

Browse files
Fix #1004 Donkeys are AbstractHorses not Horses
Still need to fix camel
1 parent 635443f commit 723255b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISRideableMobListener.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ public void onInteract(EntityInteractEvent event) {
116116
TARDISPig tmpig = null;
117117
TARDISMob mob = null;
118118
switch (type) {
119-
case CAMEL, DONKEY, HORSE, MULE, SKELETON_HORSE, ZOMBIE_HORSE -> {
120-
Horse horse = (Horse) e;
119+
case DONKEY, HORSE, MULE, SKELETON_HORSE, ZOMBIE_HORSE -> {
120+
AbstractHorse horse = (AbstractHorse) e;
121121
// save horse
122122
tmhor = new TARDISHorse();
123123
tmhor.setType(type);
@@ -194,6 +194,9 @@ public void onInteract(EntityInteractEvent event) {
194194
mob.setAge(strider.getAge());
195195
mob.setBaby(!strider.isAdult());
196196
mob.setName(ComponentUtils.stripColour(e.customName()));
197+
}
198+
case CAMEL -> {
199+
197200
}
198201
default -> { }
199202
}

0 commit comments

Comments
 (0)