mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-22 11:55:54 +01:00
Fix error in BukkitAdvancementListener
This commit is contained in:
parent
d25e12e0fa
commit
8e12731119
@ -80,8 +80,8 @@ public class BukkitAdvancementListener extends AbstractBukkitAwardListener {
|
||||
forwarder.publishEvent(
|
||||
event,
|
||||
event.getPlayer(),
|
||||
data.titleJson != null ? ComponentUtil.toAPI(BukkitComponentSerializer.gson().deserialize(data.titleJson)) : null,
|
||||
data.nameJson != null ? ComponentUtil.toAPI(BukkitComponentSerializer.gson().deserialize(data.nameJson)) : null,
|
||||
data.titleJson != null ? ComponentUtil.toAPI(BukkitComponentSerializer.gson().deserialize(data.titleJson)) : null,
|
||||
false);
|
||||
} catch (ReflectiveOperationException e) {
|
||||
logger.debug("Failed to get advancement data", e);
|
||||
@ -143,7 +143,7 @@ public class BukkitAdvancementListener extends AbstractBukkitAwardListener {
|
||||
}
|
||||
|
||||
private String toJson(Object chat) throws ReflectiveOperationException {
|
||||
return (String) toJsonMethod.invoke(chat);
|
||||
return (String) toJsonMethod.invoke(null, chat);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user