SPIGOT-7740: Fix using new map cursor types

This commit is contained in:
md_5 2024-06-14 07:09:19 +10:00
parent 0922909504
commit befcf86d22
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -187,8 +187,8 @@ public final class MapCursor {
*/ */
@Deprecated @Deprecated
public void setRawType(byte type) { public void setRawType(byte type) {
if (type < 0 || type > 26) { if (type < 0 || type > 34) {
throw new IllegalArgumentException("Type must be in the range 0-26"); throw new IllegalArgumentException("Type must be in the range 0-34");
} }
this.type = type; this.type = type;
} }