Closed SignatureBeef closed 2 years ago
This moves the projectile hook to after the SetDefaults call, matching OTAPI2 functionality, and allowing the type to be checked correctly. Without this, the tombstone ID's will not be ready for tshock to use.
see here for old code: https://github.com/Pryaxis/TSAPI/blob/4c2075fbdd7e9b17dd96d6495fe9f491a2af0bbb/TerrariaServerAPI/TerrariaApi.Server/Hooking/ProjectileHooks.cs#L22
Context:
This moves the projectile hook to after the SetDefaults call, matching OTAPI2 functionality, and allowing the type to be checked correctly. Without this, the tombstone ID's will not be ready for tshock to use.
see here for old code: https://github.com/Pryaxis/TSAPI/blob/4c2075fbdd7e9b17dd96d6495fe9f491a2af0bbb/TerrariaServerAPI/TerrariaApi.Server/Hooking/ProjectileHooks.cs#L22
Context: