Skip to content

Commit

Permalink
make it so the player can't mount a pokemon if they're holding any it…
Browse files Browse the repository at this point in the history
…em from cobblemon
  • Loading branch information
IoIxD committed Oct 27, 2023
1 parent f71402d commit 853517d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/net/ioixd/Cobblemounts.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ public void onInitialize() {

}
Item item = player.getMainHandStack().getItem();
player.startRiding(entity, false);
if (!item.getTranslationKey().contains("item.cobblemon")) {
player.startRiding(entity, false);
pkmnEntity.clearGoalsAndTasks();
}

pkmnEntity.clearGoalsAndTasks();
}
}
}
Expand Down

0 comments on commit 853517d

Please sign in to comment.