Skip to content

Commit

Permalink
fix: server crash when using multimeter
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcanoxDragon authored and MrTJP committed Jul 2, 2021
1 parent 4ca17f9 commit 2cebd4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/scala/mrtjp/core/world/messages.scala
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ object Messenger

for (m <- Messenger.messages.clone())
if (m == null || m.receivedOn < deathTime) Messenger.messages -= m
else readMessage(mStack, buffers, m, w.getGameTime + event.getPartialTicks)
else readMessage(mStack, m, w.getGameTime + event.getPartialTicks)

mStack.popPose()
}

private def readMessage(mStack:MatrixStack, buffers:IRenderTypeBuffer, m:Message, time:Double)
@OnlyIn(Dist.CLIENT)
private def readMessage(mStack:MatrixStack, m:Message, time:Double)
{
var width = 0
var height = 0
Expand Down

0 comments on commit 2cebd4c

Please sign in to comment.