Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +01:00
Small optimization
Dieser Commit ist enthalten in:
Ursprung
f15e11272a
Commit
e4346611c9
@ -170,7 +170,7 @@ public enum PacketType {
|
|||||||
if(id == -1)
|
if(id == -1)
|
||||||
return null;
|
return null;
|
||||||
for (PacketType pt : values()) {
|
for (PacketType pt : values()) {
|
||||||
if (pt.getNewPacketID() == id && id != -1
|
if (pt.getNewPacketID() == id
|
||||||
&& pt.getState() == state
|
&& pt.getState() == state
|
||||||
&& pt.getDirection() == direction)
|
&& pt.getDirection() == direction)
|
||||||
return pt;
|
return pt;
|
||||||
@ -182,7 +182,7 @@ public enum PacketType {
|
|||||||
if(id == -1)
|
if(id == -1)
|
||||||
return null;
|
return null;
|
||||||
for (PacketType pt : values()) {
|
for (PacketType pt : values()) {
|
||||||
if (pt.getPacketID() == id && id != -1
|
if (pt.getPacketID() == id
|
||||||
&& pt.getState() == state
|
&& pt.getState() == state
|
||||||
&& pt.getDirection() == direction)
|
&& pt.getDirection() == direction)
|
||||||
return pt;
|
return pt;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren