Code improvements.

This commit is contained in:
MobiusDev
2016-04-24 16:30:15 +00:00
parent 8bd51aba1c
commit 2dd14bef9b
860 changed files with 8865 additions and 17041 deletions

View File

@@ -136,12 +136,12 @@ public class Ingredient
public final boolean isStackable()
{
return _template == null ? true : _template.isStackable();
return (_template == null) || _template.isStackable();
}
public final boolean isArmorOrWeapon()
{
return _template == null ? false : (_template instanceof L2Armor) || (_template instanceof L2Weapon);
return (_template != null) && ((_template instanceof L2Armor) || (_template instanceof L2Weapon));
}
public final int getWeight()