SPIGOT-7740: Fix using new map cursor types

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2024-06-14 07:09:19 +10:00
parent 2b6b2a9f20
commit 4ec75943ed

View file

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