From 865f430ea474251d8b22e7063a31bf5a7161f42d Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Mon, 14 Jun 2021 01:19:51 +0200 Subject: [PATCH] use local class for movecontrol stuff to prevent reobf mapping issue --- .../Bees-get-gravity-in-void.-Fixes-MC-167279.patch | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/patches/server/Bees-get-gravity-in-void.-Fixes-MC-167279.patch b/patches/server/Bees-get-gravity-in-void.-Fixes-MC-167279.patch index 99f378bb006..dfc58415f92 100644 --- a/patches/server/Bees-get-gravity-in-void.-Fixes-MC-167279.patch +++ b/patches/server/Bees-get-gravity-in-void.-Fixes-MC-167279.patch @@ -14,7 +14,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 this.remainingCooldownBeforeLocatingNewFlower = Mth.nextInt(this.random, 20, 60); - this.moveControl = new FlyingMoveControl(this, 20, true); + // Paper start - apply gravity to bees when they get stuck in the void, fixes MC-167279 -+ this.moveControl = new FlyingMoveControl(this, 20, true) { ++ class BeeFlyingMoveControl extends FlyingMoveControl { ++ public BeeFlyingMoveControl(final Mob entity, final int maxPitchChange, final boolean noGravity) { ++ super(entity, maxPitchChange, noGravity); ++ } ++ + @Override + public void tick() { + if (this.mob.getY() <= 0) { @@ -22,7 +26,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + } + super.tick(); + } -+ }; ++ } ++ this.moveControl = new BeeFlyingMoveControl(this, 20, true); + // Paper end this.lookControl = new Bee.BeeLookControl(this); this.setPathfindingMalus(BlockPathTypes.DANGER_FIRE, -1.0F);