Improve Entities in water activation immunity and let items always move

This commit is contained in:
Aikar 2020-04-02 03:56:05 -04:00
parent 1dc7c308aa
commit c2d7876a54
No known key found for this signature in database
GPG Key ID: 401ADFC9891FAAFE
1 changed files with 2 additions and 2 deletions

View File

@ -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 ) )
{