commit d19697fb6a4ab9ef5b69e65986b0ac7e44c297e4 parent d8c6506d132a097db517d6f93cb88e7b3cf21c40 Author: chunksize <reisingerluca@gmail.com> Date: Wed, 22 Feb 2023 23:29:20 +0100 fix player passenger Diffstat:
M | src/poppy/modules/CommonModule.java | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/poppy/modules/CommonModule.java b/src/poppy/modules/CommonModule.java @@ -174,7 +174,7 @@ public class CommonModule implements Listener { final Player clickedPlayer = (Player) event.getRightClicked(); - if(clickedPlayer.getInventory().getHelmet().getType().equals(Material.SADDLE) && player.getPassengers().size() < 0) + if(clickedPlayer.getInventory().getHelmet().getType().equals(Material.SADDLE) && player.getPassengers().size() <= 0) { clickedPlayer.addPassenger(player); }