mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Merge pull request #1311 from FirstGearGames/patch-5
Added missing field setter on Item ReadItem() for ARMOR.
This commit is contained in:
commit
2b5370f129
@ -143,7 +143,8 @@ public static class ItemSerializer
|
|||||||
return new Armor
|
return new Armor
|
||||||
{
|
{
|
||||||
name = reader.ReadString(),
|
name = reader.ReadString(),
|
||||||
hitPoints = reader.ReadPackedInt32()
|
hitPoints = reader.ReadPackedInt32(),
|
||||||
|
level = reader.ReadPackedInt32()
|
||||||
};
|
};
|
||||||
default:
|
default:
|
||||||
throw new Exception($"Invalid weapon type {type}");
|
throw new Exception($"Invalid weapon type {type}");
|
||||||
|
Loading…
Reference in New Issue
Block a user