Fixes gh-645, gh-643 - Load player armor when using playerloadoutasdefault

This commit is contained in:
cmastudios 2013-06-29 23:31:01 -05:00
parent c4b268910b
commit 13396f85a4

View File

@ -1396,6 +1396,18 @@ public class Warzone {
}
invIndex++;
}
if (originalState.getFeet() != null) {
playerItems.put(100, originalState.getFeet());
}
if (originalState.getLegs() != null) {
playerItems.put(101, originalState.getLegs());
}
if (originalState.getChest() != null) {
playerItems.put(102, originalState.getChest());
}
if (originalState.getHelmet() != null) {
playerItems.put(103, originalState.getHelmet());
}
if (War.war.isSpoutServer()) {
SpoutManager.getPlayer(player).setTitle(originalState.getPlayerTitle());