Trial calling super#stopListening() in player advancements

This commit is contained in:
fullwall 2024-09-01 11:50:32 +08:00
parent 0804f90efd
commit 045054c076
6 changed files with 7 additions and 1 deletions

View File

@ -24,6 +24,7 @@ public class EmptyAdvancementDataPlayer extends AdvancementDataPlayer {
@Override
public void a() {
super.a();
}
@Override

View File

@ -56,6 +56,7 @@ public class EmptyAdvancementDataPlayer extends PlayerAdvancements {
@Override
public void stopListening() {
super.stopListening();
}
public static void clear(PlayerAdvancements data) {

View File

@ -56,6 +56,7 @@ public class EmptyAdvancementDataPlayer extends PlayerAdvancements {
@Override
public void stopListening() {
super.stopListening();
}
public static void clear(PlayerAdvancements data) {

View File

@ -58,6 +58,7 @@ public class EmptyAdvancementDataPlayer extends PlayerAdvancements {
@Override
public void stopListening() {
super.stopListening();
}
public static void clear(PlayerAdvancements data) {

View File

@ -62,6 +62,7 @@ public class EmptyAdvancementDataPlayer extends PlayerAdvancements {
@Override
public void stopListening() {
super.stopListening();
}
public static void clear(PlayerAdvancements data) {

View File

@ -62,9 +62,10 @@ public class EmptyAdvancementDataPlayer extends PlayerAdvancements {
@Override
public void stopListening() {
super.stopListening();
}
public static void clear(PlayerAdvancements data) {
private static void clear(PlayerAdvancements data) {
data.stopListening();
try {
((Map<?, ?>) PROGRESS.invoke(data)).clear();