mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-15 07:01:36 +08:00
Improve Entities in water activation immunity and let items always move
This commit is contained in:
parent
1dc7c308aa
commit
c2d7876a54
@ -34,7 +34,7 @@ index d522d7238d..3a248dbe37 100644
|
||||
this.setMot(Vec3D.a);
|
||||
}
|
||||
+ // Paper start - ignore movement changes while inactive.
|
||||
+ if (isTemporarilyActive && vec3d == getMot() && enummovetype == EnumMoveType.SELF) {
|
||||
+ if (isTemporarilyActive && !(entity instanceof EntityItem) && vec3d == getMot() && enummovetype == EnumMoveType.SELF) {
|
||||
+ setMot(Vec3D.a);
|
||||
+ return;
|
||||
+ }
|
||||
@ -349,7 +349,7 @@ index 92601c581c..f4cb669740 100644
|
||||
+ if ( (entity.activationType != ActivationType.WATER && entity.inWater && entity.pushedByWater()) || entity.fireTicks > 0 ) // Paper
|
||||
{
|
||||
- return true;
|
||||
+ return 1; // Paper
|
||||
+ return 100; // Paper
|
||||
}
|
||||
if ( !( entity instanceof EntityArrow ) )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user