Skip to content

Commit

Permalink
[#328] Fix NPE when using ProtocolLib 5.1.0 or older (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingrim4 authored Oct 7, 2023
1 parent e5b7c4b commit e1d42fe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.imprex.orebfuscator.obfuscation;

import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.Set;
Expand Down Expand Up @@ -27,7 +28,7 @@

public abstract class ObfuscationListener extends PacketAdapter {

private static final List<PacketType> PACKET_TYPES = List.of(
private static final List<PacketType> PACKET_TYPES = Arrays.asList(
PacketType.Play.Server.MAP_CHUNK,
PacketType.Play.Server.UNLOAD_CHUNK,
PacketType.Play.Server.LIGHT_UPDATE,
Expand Down

0 comments on commit e1d42fe

Please sign in to comment.