Skip to content

Commit 10c6115

Browse files
committed
Add update 5 TODOs for JOML and setCustomHud -> addCustomHud
1 parent e04bb6a commit 10c6115

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/com/azuredoom/levelingcore/compat/party/PartyPluginCompat.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public static void onXPGain(
7777
var killerPos = killerPlayer.getTransform().getPosition();
7878
var otherPos = otherPlayer.getTransform().getPosition();
7979

80+
// TODO: Update changes to JOML so this will be distance
8081
var distance = killerPos.distanceTo(otherPos);
8182
if (distance <= cfg.getPartyXPDistanceBlocks()) {
8283
eligible.add(uuid);

src/main/java/com/azuredoom/levelingcore/compat/party/PartyProCompat.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public static void onXPGain(
7676
var killerPos = killerPlayer.getTransform().getPosition();
7777
var otherPos = otherPlayer.getTransform().getPosition();
7878

79+
// TODO: Update changes to JOML so this will be distance
7980
var distance = killerPos.distanceTo(otherPos);
8081
if (distance <= cfg.getPartyXPDistanceBlocks()) {
8182
eligible.add(uuid);

src/main/java/com/azuredoom/levelingcore/utils/HudPlayerReady.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public static void ready(PlayerReadyEvent event, Config<GUIConfig> config) {
3232
if (playerRef == null)
3333
return;
3434
var xpHud = new XPBarHud(playerRef, levelService1, config);
35+
// TODO: Update 5 removes the need for MultipleHud/AutoMultiHud and setCustomHud will be addCustomHud instead
3536
if (PluginManager.get().getPlugin(new PluginIdentifier("Buuz135", "MultipleHUD")) != null) {
3637
MultipleHudCompat.showHud(player, playerRef, xpHud);
3738
} else {

src/main/java/com/azuredoom/levelingcore/utils/MobLevelingUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ public static int computeNearbyPlayersMeanBaseLevel(
352352
}
353353

354354
var pPos = playerRefComponent.getTransform().getPosition();
355+
// TODO: Update changes to JOML so this will be distanceSquared
355356
if (pPos.distanceSquaredTo(mobPos) <= nearbyRadiusSq) {
356357
var lvl = lvlService.getLevel(playerRefComponent.getUuid());
357358
sum += lvl;

0 commit comments

Comments
 (0)