Previously, GuiNewChat would not check if the ChatLine was null before getting its ID when deleting it in deleteChatLine. This PR makes ChatLine#getChatLineID return -1 if the ChatLine instance is null when called from deleteChatLine.
This issue mainly occurred when sending a chat message while joining a world from my testing, and this PR fixes #73.
Previously,
GuiNewChat
would not check if theChatLine
was null before getting its ID when deleting it indeleteChatLine
. This PR makesChatLine#getChatLineID
return-1
if theChatLine
instance is null when called fromdeleteChatLine
.This issue mainly occurred when sending a chat message while joining a world from my testing, and this PR fixes #73.