mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-22 18:26:08 +01:00
Fix worldborder trying to send for null location
This commit is contained in:
parent
b7d4ab5fd8
commit
965170b23f
@ -39,6 +39,9 @@ public final class WorldBorder {
|
|||||||
// Adjust border size to fit around whole-blocks, odd numbers only!
|
// Adjust border size to fit around whole-blocks, odd numbers only!
|
||||||
size += size % 2 == 0 ? 1 : 0;
|
size += size % 2 == 0 ? 1 : 0;
|
||||||
|
|
||||||
|
if (centerLocation == null)
|
||||||
|
return;
|
||||||
|
|
||||||
centerLocation = centerLocation.clone();
|
centerLocation = centerLocation.clone();
|
||||||
centerLocation.add(.5, 0, .5);
|
centerLocation.add(.5, 0, .5);
|
||||||
Object worldBorder = worldBorderClass.getConstructor().newInstance();
|
Object worldBorder = worldBorderClass.getConstructor().newInstance();
|
||||||
|
Loading…
Reference in New Issue
Block a user