Chicken-Bones / WirelessRedstone

MIT License
17 stars 17 forks source link

Wireless map causes crash #10

Open ghost opened 9 years ago

ghost commented 9 years ago

http://pastebin.com/8TjMsH3b

diamondq commented 9 years ago

So, if you're holding a Wireless Map in your hand when you log off, and then come back in, it always crashes.

This is due to the fact that the MapData parameter in WirelessMapRenderer.renderMap() is null until the server synchronizes. A simple null check fixes the problem.