Commit 048c3a5f authored by Ash's avatar Ash
Browse files

Updated to latest PlayerAnimator to fix issues on 1.20.1

Updated to latest LumineUtils
parent f69529bc
......@@ -46,7 +46,7 @@ public class LumineCoreCompat {
public void unload() {}
@Override
public Promise<Optional<Profile>> load(UUID uuid) {
public Promise<Optional<Profile>> load(UUID uuid, int subprofile) {
final Promise<Optional<Profile>> promise = Promise.empty();
core.getProfiles().getProfile(uuid).thenAcceptAsync(maybeCoreProfile -> {
......@@ -60,7 +60,7 @@ public class LumineCoreCompat {
}
@Override
public Promise<Optional<Profile>> loadByName(String name) {
public Promise<Optional<Profile>> loadByName(String name, int subprofile) {
final Promise<Optional<Profile>> promise = Promise.empty();
core.getProfiles().getProfile(name).thenAcceptAsync(maybeCoreProfile -> {
......
......@@ -57,7 +57,7 @@ public class ProfileManager extends PlayerRepository<MCCosmeticsPlugin,Profile>
}
@Override
public Profile createProfile(UUID id, String name) {
public Profile createProfile(UUID id, String name, int subprofile) {
return new Profile(id,name);
}
......
......@@ -43,7 +43,7 @@ public class SqlStorage<MCCosmeticsPlugin,CosmeticsProfile> extends SqlPlayerSto
}
@Override
public Promise<Optional<io.lumine.cosmetics.players.Profile>> load(final UUID uuid) {
public Promise<Optional<io.lumine.cosmetics.players.Profile>> load(final UUID uuid, int subprofile) {
return Promise.supplyingDelayedAsync(() -> {
var connection = getConnector().open();
......@@ -55,7 +55,7 @@ public class SqlStorage<MCCosmeticsPlugin,CosmeticsProfile> extends SqlPlayerSto
return Optional.empty();
}
var profile = manager.createProfile(UUID.fromString(fetchProfile.getUuid()), fetchProfile.getName());
var profile = manager.createProfile(UUID.fromString(fetchProfile.getUuid()), fetchProfile.getName(), 0);
profile.loadFromSql(fetchProfile);
......@@ -64,7 +64,7 @@ public class SqlStorage<MCCosmeticsPlugin,CosmeticsProfile> extends SqlPlayerSto
}
@Override
public Promise<Optional<io.lumine.cosmetics.players.Profile>> loadByName(String name) {
public Promise<Optional<io.lumine.cosmetics.players.Profile>> loadByName(String name, int subprofile) {
return Promise.supplyingAsync(() -> {
var connection = getConnector().open();
......@@ -76,7 +76,7 @@ public class SqlStorage<MCCosmeticsPlugin,CosmeticsProfile> extends SqlPlayerSto
return Optional.empty();
}
var profile = manager.createProfile(UUID.fromString(fetchProfile.getUuid()), fetchProfile.getName());
var profile = manager.createProfile(UUID.fromString(fetchProfile.getUuid()), fetchProfile.getName(), 0);
profile.loadFromSql(fetchProfile);
......
  • Royal Reels https://royalreelsau.com is the ultimate in online casino entertainment! It stands out for its exciting game variety, from classic slots to the latest releases, ensuring there's always something new and thrilling to try. The casino offers generous bonuses and promotions that add extra excitement to your play. The user-friendly interface and immersive graphics make for an engaging experience, while the top-notch customer support ensures you have help whenever you need it. With casino, you get the perfect blend of fun, rewards, and unbeatable gaming action. It truly is the best choice for anyone looking to enjoy top-quality casino entertainment!

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment