From 13396f85a44aef94ed2d611995347e9a4d3b36c0 Mon Sep 17 00:00:00 2001 From: cmastudios Date: Sat, 29 Jun 2013 23:31:01 -0500 Subject: [PATCH] Fixes gh-645, gh-643 - Load player armor when using playerloadoutasdefault --- war/src/main/java/com/tommytony/war/Warzone.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/war/src/main/java/com/tommytony/war/Warzone.java b/war/src/main/java/com/tommytony/war/Warzone.java index 1b6495f..dee95d4 100644 --- a/war/src/main/java/com/tommytony/war/Warzone.java +++ b/war/src/main/java/com/tommytony/war/Warzone.java @@ -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());