Fix worldborder trying to send for null location

This commit is contained in:
Esophose 2019-06-04 12:00:36 -06:00
parent b7d4ab5fd8
commit 965170b23f

View File

@ -39,6 +39,9 @@ public final class WorldBorder {
// Adjust border size to fit around whole-blocks, odd numbers only!
size += size % 2 == 0 ? 1 : 0;
if (centerLocation == null)
return;
centerLocation = centerLocation.clone();
centerLocation.add(.5, 0, .5);
Object worldBorder = worldBorderClass.getConstructor().newInstance();