Skip to content

Commit

Permalink
Allow minecraft: prefixed ids
Browse files Browse the repository at this point in the history
  • Loading branch information
RacoonDog committed Jul 15, 2024
1 parent 60a8187 commit d37963e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public static String getName(PacketType<? extends Packet<?>> packetClass) {
*/
@Nullable
public static PacketType<? extends Packet<?>> getPacket(String name) {
if (name.startsWith("minecraft:")) name = name.substring(10);
return PACKET_MAPPINGS_R.get(name);
}

Expand Down

0 comments on commit d37963e

Please sign in to comment.