mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 13:45:42 +12:00
fix bugs
This commit is contained in:
parent
37c4c679a3
commit
4e333d1387
2 changed files with 4 additions and 1 deletions
|
@ -434,7 +434,7 @@ namespace HISP.Game
|
|||
foreach(InventoryItem item in trade.Trader.Inventory.GetItemList())
|
||||
{
|
||||
Item.ItemInformation itemInfo = Item.GetItemById(item.ItemId);
|
||||
if (itemInfo.Type != "QUEST" && itemInfo.Type != "TEXT" && !(itemInfo.Id == Item.DorothyShoes || itemInfo.Id == Item.Telescope))
|
||||
if (itemInfo.Type == "QUEST" || itemInfo.Type == "TEXT" || itemInfo.Id == Item.DorothyShoes)
|
||||
continue;
|
||||
message += Messages.FormatTradeOfferItem(itemInfo.IconId, itemInfo.Name, item.ItemInstances.Count, item.ItemId);
|
||||
}
|
||||
|
|
|
@ -3587,6 +3587,9 @@ namespace HISP.Server
|
|||
}
|
||||
public static bool IsUserSubscribed(int playerId)
|
||||
{
|
||||
if (ConfigReader.AllUsersSubbed)
|
||||
return true;
|
||||
|
||||
using (MySqlConnection db = new MySqlConnection(ConnectionString))
|
||||
{
|
||||
db.Open();
|
||||
|
|
Loading…
Add table
Reference in a new issue