Fixed WrappedPacketOutWindowItems for 1.17
This commit is contained in:
1 parent
9c2609f4ee
commit
db1c913a3e
1 file changed
+1
-1
+1
-1
@@ -55,7 +55,7 @@ public class WrappedPacketOutWindowItems extends WrappedPacket implements Sendab
|
||||
try {
|
||||
if (v_1_17) {
|
||||
nonNullListClass = NMSUtils.getNMClassWithoutException("core.NonNullList");
|
||||
Constructor<?> nonNullListConstructor = nonNullListClass.getConstructor();
|
||||
Constructor<?> nonNullListConstructor = nonNullListClass.getDeclaredConstructor();
|
||||
nonNullListConstructor.setAccessible(true);
|
||||
nonNullListInstance = nonNullListConstructor.newInstance();
|
||||
packetConstructor = PacketTypeClasses.Play.Server.WINDOW_ITEMS.getConstructor(int.class, nonNullListClass);
|
||||
|
||||
Reference in new issue
Block a user