Update player_sharpen.sqf

Fixes extra knife being deleted if player already had a fully sharpened
knife on their toolbelt (duplicate weapon).

Vanilla commit:

0332fcbe71
This commit is contained in:
ebayShopper
2017-03-20 18:18:04 -04:00
parent d4eb7ac6e4
commit 8b3f28dc0c
5 changed files with 21 additions and 18 deletions

View File

@@ -40,6 +40,7 @@ switch (_this select 0) do {
//Drop dull knife or empty matchbox if player already has one. Prevents duplicate tool.
player removeWeapon _remaining;
[_remaining,2,1] call fn_dropItem;
format[localize "str_actions_noroom",_remaining] call dayz_rollingMessages;
};
player addWeapon _remaining;
};