This commit is contained in:
MattBDev
2016-07-31 20:17:35 -04:00
parent e801c6d7e8
commit ea3306d070
2 changed files with 9 additions and 5 deletions

View File

@ -366,7 +366,11 @@ public class EntityWrapper {
}
private void restoreInventory(InventoryHolder entity) {
entity.getInventory().setContents(this.inventory);
try {
entity.getInventory().setContents(this.inventory);
} catch (IllegalArgumentException e) {
PS.debug("&c[WARN] Failed to restore inventory.\n Reason: " + e.getMessage());
}
}
public void storeLiving(LivingEntity lived) {