Fixed tutorial item NPE.

This commit is contained in:
MobiusDev 2017-12-09 21:33:45 +00:00
parent e7ab6986cf
commit 21f59016e4
5 changed files with 0 additions and 35 deletions

View File

@ -167,13 +167,6 @@ public final class UseItem implements IClientIncomingPacket
}
}
// If item's default action is to show html, show item's main html.
if (item.getItem().getDefaultAction() == ActionType.SHOW_HTML)
{
item.onBypassFeedback(activeChar, null);
return;
}
if (item.isEquipable())
{
// Don't allow to put formal wear while a cursed weapon is equipped.

View File

@ -167,13 +167,6 @@ public final class UseItem implements IClientIncomingPacket
}
}
// If item's default action is to show html, show item's main html.
if (item.getItem().getDefaultAction() == ActionType.SHOW_HTML)
{
item.onBypassFeedback(activeChar, null);
return;
}
if (item.isEquipable())
{
// Don't allow to put formal wear while a cursed weapon is equipped.

View File

@ -167,13 +167,6 @@ public final class UseItem implements IClientIncomingPacket
}
}
// If item's default action is to show html, show item's main html.
if (item.getItem().getDefaultAction() == ActionType.SHOW_HTML)
{
item.onBypassFeedback(activeChar, null);
return;
}
if (item.isEquipable())
{
// Don't allow to put formal wear while a cursed weapon is equipped.

View File

@ -167,13 +167,6 @@ public final class UseItem implements IClientIncomingPacket
}
}
// If item's default action is to show html, show item's main html.
if (item.getItem().getDefaultAction() == ActionType.SHOW_HTML)
{
item.onBypassFeedback(activeChar, null);
return;
}
if (item.isEquipable())
{
// Don't allow to put formal wear while a cursed weapon is equipped.

View File

@ -167,13 +167,6 @@ public final class UseItem implements IClientIncomingPacket
}
}
// If item's default action is to show html, show item's main html.
if (item.getItem().getDefaultAction() == ActionType.SHOW_HTML)
{
item.onBypassFeedback(activeChar, null);
return;
}
if (item.isEquipable())
{
// Don't allow to put formal wear while a cursed weapon is equipped.