Add length to database primary keys.
Tweak some of the itembans code to be less inefficient. Removed a chunk of code from the buff code that prevented users from being buffed with a buff that comes from an item. This code seemed to cause max cpu usage when being disabled. I don't think this code is useful, but I leave that to people who own servers. IMO all buff code should be removed.
This commit is contained in:
parent
c29f01b959
commit
d5527ade42
5 changed files with 10 additions and 13 deletions
|
|
@ -3292,7 +3292,7 @@ namespace TShockAPI
|
|||
{
|
||||
var buff = args.Data.ReadInt8();
|
||||
|
||||
if (TShock.Itembans.ItemBans.Any(s =>
|
||||
/*if (TShock.Itembans.ItemBans.Any(s =>
|
||||
{
|
||||
Item item = new Item();
|
||||
item.SetDefaults(s.Name);
|
||||
|
|
@ -3300,7 +3300,7 @@ namespace TShockAPI
|
|||
}))
|
||||
{
|
||||
buff = 0;
|
||||
}
|
||||
}*/
|
||||
|
||||
if (buff == 10 && TShock.Config.DisableInvisPvP && args.TPlayer.hostile)
|
||||
buff = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue