Did some tweaks to Teleport to make the bounds checks in one place.
Fixed item drop packet, as well as update the bounds.
This commit is contained in:
parent
b8a5492b20
commit
d71aacc58d
4 changed files with 36 additions and 46 deletions
|
|
@ -371,7 +371,7 @@ namespace TShockAPI
|
|||
var found = new List<Item>();
|
||||
Item item = new Item();
|
||||
string nameLower = name.ToLower();
|
||||
for (int i = -24; i < Main.maxItemTypes; i++)
|
||||
for (int i = -48; i < Main.maxItemTypes; i++)
|
||||
{
|
||||
item.netDefaults(i);
|
||||
if (item.name.ToLower() == nameLower)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue