Archiviert
13
0

Fixed a bug preventing dual side packets from working in 1.6.4.

An example of a dual side packet is Packet101CloseWindow, which is 
sent by the server when it forces a inventory window to close, or 
by the client to the server when the player voluntarily closes it.

The bug prevented the client-side of a dual side packet from being 
recognized in 1.6.4. Thanks to Shevchikden for discovering the bug, 
and finding the correct build number where it was introduced.
Dieser Commit ist enthalten in:
Kristian S. Stangeland 2014-02-04 22:53:56 +01:00
Ursprung 9ef9475b61
Commit 345cc74b3c

Datei anzeigen

@ -643,7 +643,7 @@ public class PacketType implements Serializable, Comparable<PacketType> {
* @throws IllegalArgumentException If the sender is NULL and the packet doesn't exist. * @throws IllegalArgumentException If the sender is NULL and the packet doesn't exist.
*/ */
public static PacketType fromLegacy(int id, Sender sender) { public static PacketType fromLegacy(int id, Sender sender) {
PacketType type = getLookup().getFromLegacy(id); PacketType type = getLookup().getFromLegacy(id, sender);
if (type == null) { if (type == null) {
if (sender == null) if (sender == null)