forked from tModLoader/tModLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DecompileRuntimeErrors.txt
47 lines (42 loc) · 1.5 KB
/
DecompileRuntimeErrors.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Terraria.ID.SetFactory
public T[] CreateCustomSet<T>(T defaultState, params object[] inputs)
- array[(int)((short)inputs[j])] = (T)((object)inputs[j + 1]);
+ array[(int)inputs[j]] = (T)((object)inputs[j + 1]);
Terraria.IO.WorldFile
private static int SaveWorldHeader(BinaryWriter writer)
- writer.Write(541); //number of NPCs, will likely change
+ writer.Write((short)541);
private static int SaveChests(BinaryWriter writer)
- writer.Write(40);
+ writer.Write((short)40);
- writer.Write(0);
+ writer.Write((short)0);
Terraria.Map.MapHelper
public static void SaveMap()
- binaryWriter.Write(461); //number of tiles, will likely change
- binaryWriter.Write(231); //number of walls, will likely change
- binaryWriter.Write(3);
- binaryWriter.Write(256);
- binaryWriter.Write(256);
- binaryWriter.Write(256);
+ binaryWriter.Write((short)446);
+ binaryWriter.Write((short)225);
+ binaryWriter.Write((short)3);
+ binaryWriter.Write((short)256);
+ binaryWriter.Write((short)256);
+ binaryWriter.Write((short)256);
Terraria.Net.NetModule
protected static NetPacket CreatePacket<T>(int size) where T : NetModule
- result.Writer.Write(82);
+ result.Writer.Write((byte)82);
Terraria.Social.Steam.NetServerSocialModule
private void BroadcastConnectedUsers()
- binaryWriter.Write(1);
+ binaryWriter.Write((byte)1);
Terraria.NetMessage.SendData(...)
case 18:
- writer.Write(Main.dayTime ? 1 : 0);
+ writer.Write((byte)(Main.dayTime ? 1 : 0));
case 19:
- writer.Write((number4 == 1f) ? 1 : 0);
+ writer.Write((byte)((number4 == 1f) ? 1 : 0));