mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-12-19 08:18:45 +01:00
Fix #1034
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user