Items disappear when attempting to put on armour in creative #5

Open
opened 2018-12-30 00:06:13 -05:00 by kennyrkun · 1 comment
kennyrkun commented 2018-12-30 00:06:13 -05:00 (Migrated from github.com)

Describe the bug
Whatever you try to equip in creative will vanish.

To Reproduce

  1. Change gamemode to creative
  2. Equip a piece of armour

Expected behavior
It should simply not allow the armour to be equipped.

**Describe the bug** Whatever you try to equip in creative will vanish. **To Reproduce** 1. Change gamemode to creative 2. Equip a piece of armour **Expected behavior** It should simply not allow the armour to be equipped.
kennyrkun commented 2019-01-08 00:14:58 -05:00 (Migrated from github.com)

The issue lies in ArmourEquipEvent. When PlagueArmour is equipped, but is not allowed, the AEE is cancelled. When this happens in creative, the item is not returned to the inventory, it is simply removed.

The issue lies in ArmourEquipEvent. When PlagueArmour is equipped, but is not allowed, the AEE is cancelled. When this happens in creative, the item is not returned to the inventory, it is simply removed.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kerrishaus/ErosteySpecies#5
No description provided.