fix: Fixes smithy tool craft NPE (#1331)
This commit is contained in:
parent
df29fca0c2
commit
2db7513059
1 changed files with 1 additions and 1 deletions
|
|
@ -1097,7 +1097,7 @@ namespace Server.Engines.Craft
|
|||
if (craftSystem is DefBlacksmithy)
|
||||
{
|
||||
var hammer = from.FindItemOnLayer<AncientSmithyHammer>(Layer.OneHanded);
|
||||
if (hammer != tool)
|
||||
if (hammer != null && hammer != tool)
|
||||
{
|
||||
hammer.UsesRemaining--;
|
||||
if (hammer.UsesRemaining < 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue