mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
extended content-type range
This commit is contained in:
@@ -61,7 +61,7 @@ InventoryItem* InventoryItem::deSerialize(std::istream &is)
|
||||
is>>material;
|
||||
u16 count;
|
||||
is>>count;
|
||||
if(material > 255)
|
||||
if(material > MAX_CONTENT)
|
||||
throw SerializationError("Too large material number");
|
||||
return new MaterialItem(material, count);
|
||||
}
|
||||
|
Reference in New Issue
Block a user