Remove redundant setContents() calls from class chest handlers.

Before, these redundant calls didn't really do anything. Now they mess everything up, because setContents() doesn't set inventory contents only, but the entire inventory instead, because that's so super useful. Well done, boys!

#notsalty
This commit is contained in:
garbagemule 2016-03-19 22:59:54 +01:00 committed by Andreas Troelsen
parent 93ce8b9667
commit 558681a2f2
2 changed files with 0 additions and 2 deletions

View File

@ -1103,7 +1103,6 @@ public class ArenaListener
contents = newContents;
}
arena.assignClassGiveInv(p, className, contents);
p.getInventory().setContents(contents);
Messenger.tell(p, Msg.LOBBY_CLASS_PICKED, TextUtils.camelCase(className));
if (price > 0D) {
Messenger.tell(p, Msg.LOBBY_CLASS_PRICE, plugin.economyFormat(price));

View File

@ -101,7 +101,6 @@ public class PickClassCommand implements Command
contents = newContents;
}
arena.assignClassGiveInv(p, lowercase, contents);
p.getInventory().setContents(contents);
Messenger.tell(p, Msg.LOBBY_CLASS_PICKED, TextUtils.camelCase(lowercase));
if (price > 0D) {
Messenger.tell(p, Msg.LOBBY_CLASS_PRICE, am.getPlugin().economyFormat(price));