Merge branch 'next-minor' into modern-world-support

This commit is contained in:
Dylan K. Taylor
2022-03-23 13:42:46 +00:00
52 changed files with 1885 additions and 1338 deletions

View File

@ -232,6 +232,9 @@ class TypeConverter{
$compound = null;
}
}
if($meta < 0 || $meta >= 0x7fff){ //this meta value may have been restored from the NBT
throw new TypeConversionException("Item meta must be in range 0 ... " . 0x7fff . " (received $meta)");
}
try{
return ItemFactory::getInstance()->get(