Цитата:
Сообщение от bloodshed
// finally, give the tax to the castle...
if (!_singleMultiSell)
{
if (merchant.getIsInTown() && merchant.getCastle().getOwnerId() > 0)
merchant.getCastle().addToTreasury(_transactionTax * _amount);
}
Code: Java поменяй на
// finally, give the tax to the castle...
if (!_singleMultiSell)
{
if (merchant != null && merchant.getIsInTown() && merchant.getCastle().getOwnerId() > 0)
merchant.getCastle().addToTreasury(_transactionTax * _amount);
}
Code: Java Хотя вроде выше есть проверка на мультиселы из коммьюнити, возможно с ними какая то проблема, может ты не указал какой-то как разрешённый.
Добавлено через 1 минуту
Если ошибка останется, значит merchant.getCastle() возвращает null
|
ошибка осталась, что делать ?