Code improvements.
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user