Fix borders

This commit is contained in:
libraryaddict 2015-10-20 04:37:42 +13:00
parent 55f97ef984
commit 5d671d3300
2 changed files with 320 additions and 193 deletions

View File

@ -281,7 +281,7 @@ public class UHC extends TeamGame
{
WorldBorder border = new WorldBorder();
border.transitionSizeBetween(_currentBorder * 2, _previousBorder * 2,
border.transitionSizeBetween(_previousBorder * 2, _currentBorder * 2,
_currentBorder != _previousBorder ? 1000 : 0);
PacketPlayOutWorldBorder packet = new PacketPlayOutWorldBorder(border,
@ -376,14 +376,13 @@ public class UHC extends TeamGame
WorldBorder border = new WorldBorder();
border.transitionSizeBetween(
_currentBorder * 2,
_previousBorder * 2,
_currentBorder * 2,
_currentBorder != _previousBorder ? 1000 - Math.min(1000,
(System.currentTimeMillis() - _borderStartedMoving))
: 0);
border.setWarningDistance(-10);
border.setWarningTime(-10);
border.a(29999984);
PacketPlayOutWorldBorder packet = new PacketPlayOutWorldBorder(border,
EnumWorldBorderAction.INITIALIZE);