From c5abf0aabf07ffec4b265ea365979f4ce3a8aa24 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Mon, 23 Sep 2024 22:31:07 -0700 Subject: [PATCH] Fix entity cramming We want to count non-passengers, not passengers --- .../moonrise/mixin/collisions/LivingEntityMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ca/spottedleaf/moonrise/mixin/collisions/LivingEntityMixin.java b/src/main/java/ca/spottedleaf/moonrise/mixin/collisions/LivingEntityMixin.java index 5aee3626..6f719a6e 100644 --- a/src/main/java/ca/spottedleaf/moonrise/mixin/collisions/LivingEntityMixin.java +++ b/src/main/java/ca/spottedleaf/moonrise/mixin/collisions/LivingEntityMixin.java @@ -41,7 +41,7 @@ public void pushEntities() { int nonPassengers = 0; for (int i = 0, len = nearby.size(); i < len; ++i) { final Entity entity = nearby.get(i); - nonPassengers += (entity.isPassenger() ? 1 : 0); + nonPassengers += (entity.isPassenger() ? 0 : 1); this.doPush(entity); }