mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 11:29:15 +00:00
[1.19.x] Affect ItemEntity Motion in Custom Fluids (#8737)
This commit is contained in:
1 parent
eabba46595
commit
ff45bb4c27
1 file changed
+2
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user