ClearCommand: Add OffHandInventory to $inventories (#4631)

This commit is contained in:
Matthew Jordan 2021-12-09 05:19:33 -06:00 committed by GitHub
parent 922ce2e312
commit f8ed23cc1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,8 @@ class ClearCommand extends VanillaCommand{
$inventories = [
$target->getInventory(),
$target->getCursorInventory(),
$target->getArmorInventory()
$target->getArmorInventory(),
$target->getOffHandInventory()
];
// Checking player's inventory for all the items matching the criteria