mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
give some info if a packat could not be translated
This commit is contained in:
parent
91a80f7dee
commit
d85e565048
1 changed files with 3 additions and 2 deletions
|
|
@ -53,9 +53,10 @@ public class Registry<T> {
|
||||||
if (MAP.containsKey(clazz)) {
|
if (MAP.containsKey(clazz)) {
|
||||||
((PacketTranslator<P>) MAP.get(clazz)).translate(packet, session);
|
((PacketTranslator<P>) MAP.get(clazz)).translate(packet, session);
|
||||||
}
|
}
|
||||||
} catch (NullPointerException ex) {
|
} catch (Throwable ex) {
|
||||||
GeyserLogger.DEFAULT.debug("Could not translate packet " + packet.getClass().getSimpleName());
|
GeyserLogger.DEFAULT.debug("Could not translate packet " + packet.getClass().getSimpleName(), ex);
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue