bravoserver / bravo

UNMAINTAINED: Reverse-engineered Minecraft stuff. Worked with 1.4.x protocol
http://bravoserver.org/
Other
206 stars 45 forks source link

Fix issue #320: End of stream error after closing inventory #324

Closed mcsakoff closed 13 years ago

mcsakoff commented 13 years ago

According to http://mc.kev009.com/Protocol#Close_window_.280x65.29 notchian clients send a close window message with window id 0 to close their inventory even though there is never an Open Window message for inventory.

We shall check container.wid == 0 before getting window from top of the stack.

MostAwesomeDude commented 13 years ago

Excellent! Merged.