Skip to content
This repository was archived by the owner on Nov 25, 2019. It is now read-only.

Commit 9b27ca8

Browse files
committed
Last round of fixes
1 parent 2bf6472 commit 9b27ca8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PGM/src/main/java/tc/oc/pgm/mutation/types/kit/TeamChestMutation.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,15 @@ public void enable() {
4949
super.enable();
5050
for (Party party : match().getParties()) {
5151
if (party.isParticipatingType()) {
52-
// Could the chest title be localized properly?
52+
// TODO: Could the chest title be localized properly?
5353
teamChests.put(party, match().getServer().createInventory(null, CHEST_SIZE));
5454
}
5555
}
5656
}
5757

5858
@Override
5959
public void disable() {
60+
super.disable();
6061
teamChests.clear();
6162
}
6263

@@ -67,7 +68,7 @@ public void kits(MatchPlayer player, List<Kit> kits) {
6768
}
6869

6970
// Open shared inventory instead of placing the chest
70-
@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)
71+
@EventHandler(priority = EventPriority.HIGHEST)
7172
public void onChestUse(PlayerInteractEvent event) {
7273
Player bukkitPlayer = event.getPlayer();
7374
Optional<MatchPlayer> optPlayer = match().participant((Entity) bukkitPlayer);

0 commit comments

Comments
 (0)