Fixed the ability to spawn Zenith projectile with non-original items.
This commit is contained in:
parent
87d5b476ea
commit
6cec7e71cd
3 changed files with 12 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
|
|||
* Changed hook `GetDataHandlers.OnNewProjectile` so that it passes the projectile's AI (by updating `NewProjectileEventArgs` and parsing this during the TShock hook) to support processing projectile AI in bouncer. (@AgaSpace)
|
||||
* Fixed an issue where certain projectiles could be sent to the server with uncapped size parameters, which resulted in large disruptive client artifacts that could be used to grief players. (@AgaSpace, @Arthri)
|
||||
* Added the currently running value of `Main.GameMode` to `/worldmode` as "Mode". (@hakusaro)
|
||||
* Fixed the ability to spawn Zenith projectile with non-original items. (@AgaSpace)
|
||||
|
||||
## TShock 4.5.10
|
||||
* Changed the server behavior when `SIGINT` is received. When `SIGINT` is trapped, the server will attempt to shut down safely. When it is trapped a second time in a session, it will immediately exit. (`SIGINT` is typically triggered via CTRL + C.) This means that it is possible to corrupt your world if you force shutdown at the wrong time (e.g., while the world is saving), but hopefully you expect this to happen if you hit CTRL + C twice in a session and you read the warning. (@hakusaro, @Onusai)
|
||||
|
|
|
|||
|
|
@ -1096,7 +1096,13 @@ namespace TShockAPI
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
if (TShock.Config.Settings.DisableAnyZenith && type == ProjectileID.FinalFractal && !Terraria.Graphics.FinalFractalHelper._fractalProfiles.ContainsKey((int)ai[1]))
|
||||
{
|
||||
TShock.Log.ConsoleDebug("Bouncer / OnNewProjectile rejected from bouncer modified Zenith projectile from {0}.", args.Player.Name);
|
||||
args.Player.RemoveProjectile(ident, owner);
|
||||
args.Handled = true;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!args.Player.HasPermission(Permissions.ignoreprojectiledetection))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -456,6 +456,10 @@ namespace TShockAPI.Configuration
|
|||
/// <summary>Whether or not the server should suppress build permission failure warnings from regions, spawn point, or server edit failure.</summary>
|
||||
[Description("Whether or not the server should suppress build permission failure warnings from regions, spawn point, or server edit failure.")]
|
||||
public bool SuppressPermissionFailureNotices = false;
|
||||
|
||||
/// <summary>Prohibit the use of Zenith projectile with different objects instead of weapons.</summary>
|
||||
[Description("Prohibit the use of Zenith projectile with different objects instead of weapons.")]
|
||||
public bool DisableAnyZenith = true;
|
||||
#endregion
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue