From 49aac2c4967b998934252685ce57b78499deb4c1 Mon Sep 17 00:00:00 2001 From: LexManos Date: Sat, 26 Sep 2026 18:32:39 -0700 Subject: [PATCH] Fix entities not being pushed by fluids --- .../world/entity/EntityFluidInteraction.java.patch | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/patches/minecraft/net/minecraft/world/entity/EntityFluidInteraction.java.patch b/patches/minecraft/net/minecraft/world/entity/EntityFluidInteraction.java.patch index d310bc11f4..5e708852bf 100644 --- a/patches/minecraft/net/minecraft/world/entity/EntityFluidInteraction.java.patch +++ b/patches/minecraft/net/minecraft/world/entity/EntityFluidInteraction.java.patch @@ -105,7 +105,7 @@ private EntityFluidInteraction.@Nullable CurrentAccumulator getCurrentAccumulatorFor(final Holder fluid) { for (Entry, EntityFluidInteraction.CurrentAccumulator> entry : Reference2ObjectMaps.fastIterable(this.currentAccumulators)) { if (fluid.is(entry.getKey())) { -@@ -158,6 +_,30 @@ +@@ -158,6 +_,28 @@ return null; } @@ -113,9 +113,7 @@ + var ret = this.currentAccumulatorsByType.get(fluid); + if (ret == null) { + var factory = MODDED_TYPES.get(fluid); -+ if (factory == null) -+ return null; -+ ret = factory.get(); ++ ret = factory == null ? new CurrentAccumulator() : factory.get(); + this.currentAccumulatorsByType.put(fluid, ret); + } + return ret;