minecraft chat parser fix

yes im in local server with no extras and stuff
just essentials.
then i found out that i can't do j* anything because hoverEvent doesn't exist
This commit is contained in:
ChomeNS 2023-03-24 15:32:10 +07:00
parent ea7a83772a
commit ada2f66cdb

View file

@ -40,10 +40,6 @@ public class MinecraftChatParser implements ChatParser {
final Component senderComponent = args.get(0);
final Component contents = args.get(1);
// Find the sender and attempt to map it to a player
final HoverEvent<?> hoverEvent = senderComponent.hoverEvent();
if (hoverEvent == null || !hoverEvent.action().equals(HoverEvent.Action.SHOW_ENTITY)) return null;
parameters.put("sender", senderComponent);
parameters.put("contents", contents);