From ff45bb4c272b1c0edf96ed00d0a5f7709c4d6ed4 Mon Sep 17 00:00:00 2001 From: ChampionAsh5357 Date: Wed, 15 Jun 2022 09:01:57 -0400 Subject: [PATCH] [1.19.x] Affect ItemEntity Motion in Custom Fluids (#8737) --- .../net/minecraft/world/entity/item/ItemEntity.java.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/world/entity/item/ItemEntity.java.patch b/patches/minecraft/net/minecraft/world/entity/item/ItemEntity.java.patch index 3d5037bdd7..ac1ddc01a9 100644 --- a/patches/minecraft/net/minecraft/world/entity/item/ItemEntity.java.patch +++ b/patches/minecraft/net/minecraft/world/entity/item/ItemEntity.java.patch @@ -27,12 +27,13 @@ if (this.m_32055_().m_41619_()) { this.m_146870_(); } else { -@@ -100,6 +_,8 @@ +@@ -100,6 +_,9 @@ this.f_19856_ = this.m_20189_(); Vec3 vec3 = this.m_20184_(); float f = this.m_20192_() - 0.11111111F; + net.minecraftforge.fluids.FluidType fluidType = this.getMaxHeightFluidType(); + if (!fluidType.isAir() && !fluidType.isVanilla() && this.getFluidTypeHeight(fluidType) > (double)f) fluidType.setItemMovement(this); ++ else if (this.m_20069_() && this.m_204036_(FluidTags.f_13131_) > (double)f) { this.m_32067_(); } else if (this.m_20077_() && this.m_204036_(FluidTags.f_13132_) > (double)f) {