God damn casts
This commit is contained in:
parent
552970c8d5
commit
4a6bacfe98
1 changed files with 1 additions and 1 deletions
|
|
@ -462,7 +462,7 @@ namespace TShockAPI
|
||||||
writer.Write(Main.worldID);
|
writer.Write(Main.worldID);
|
||||||
writer.Write(0 + (WorldGen.shadowOrbSmashed ? 1 : 0) + (NPC.downedBoss1 ? 2 : 0) + (NPC.downedBoss2 ? 4 : 0) + (NPC.downedBoss3 ? 8 : 0));
|
writer.Write(0 + (WorldGen.shadowOrbSmashed ? 1 : 0) + (NPC.downedBoss1 ? 2 : 0) + (NPC.downedBoss2 ? 4 : 0) + (NPC.downedBoss3 ? 8 : 0));
|
||||||
writer.Write(Main.worldName);
|
writer.Write(Main.worldName);
|
||||||
var length = stream.Position - 5;
|
var length = (int)(stream.Position - 5);
|
||||||
stream.Position = 0;
|
stream.Position = 0;
|
||||||
writer.Write(length);
|
writer.Write(length);
|
||||||
try
|
try
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue