Fix borders
This commit is contained in:
parent
55f97ef984
commit
5d671d3300
File diff suppressed because it is too large
Load Diff
@ -281,7 +281,7 @@ public class UHC extends TeamGame
|
|||||||
{
|
{
|
||||||
WorldBorder border = new WorldBorder();
|
WorldBorder border = new WorldBorder();
|
||||||
|
|
||||||
border.transitionSizeBetween(_currentBorder * 2, _previousBorder * 2,
|
border.transitionSizeBetween(_previousBorder * 2, _currentBorder * 2,
|
||||||
_currentBorder != _previousBorder ? 1000 : 0);
|
_currentBorder != _previousBorder ? 1000 : 0);
|
||||||
|
|
||||||
PacketPlayOutWorldBorder packet = new PacketPlayOutWorldBorder(border,
|
PacketPlayOutWorldBorder packet = new PacketPlayOutWorldBorder(border,
|
||||||
@ -376,14 +376,13 @@ public class UHC extends TeamGame
|
|||||||
WorldBorder border = new WorldBorder();
|
WorldBorder border = new WorldBorder();
|
||||||
|
|
||||||
border.transitionSizeBetween(
|
border.transitionSizeBetween(
|
||||||
_currentBorder * 2,
|
|
||||||
_previousBorder * 2,
|
_previousBorder * 2,
|
||||||
|
_currentBorder * 2,
|
||||||
_currentBorder != _previousBorder ? 1000 - Math.min(1000,
|
_currentBorder != _previousBorder ? 1000 - Math.min(1000,
|
||||||
(System.currentTimeMillis() - _borderStartedMoving))
|
(System.currentTimeMillis() - _borderStartedMoving))
|
||||||
: 0);
|
: 0);
|
||||||
border.setWarningDistance(-10);
|
border.setWarningDistance(-10);
|
||||||
border.setWarningTime(-10);
|
border.setWarningTime(-10);
|
||||||
border.a(29999984);
|
|
||||||
|
|
||||||
PacketPlayOutWorldBorder packet = new PacketPlayOutWorldBorder(border,
|
PacketPlayOutWorldBorder packet = new PacketPlayOutWorldBorder(border,
|
||||||
EnumWorldBorderAction.INITIALIZE);
|
EnumWorldBorderAction.INITIALIZE);
|
||||||
|
Loading…
Reference in New Issue
Block a user