Fixed IllegalArgumentException when processing corrupt data
This commit is contained in:
parent
1974838f74
commit
070c5139e1
2 changed files with 13 additions and 7 deletions
|
|
@ -1914,7 +1914,7 @@ public class Rollback extends Queue {
|
|||
}
|
||||
itemstack.setItemMeta(meta);
|
||||
}
|
||||
else if ((rowType == Material.MAP)) {
|
||||
else if (rowType == Material.MAP || rowType == Material.FILLED_MAP) {
|
||||
for (Map<String, Object> colorData : map) {
|
||||
MapMeta meta = (MapMeta) itemstack.getItemMeta();
|
||||
org.bukkit.Color color = org.bukkit.Color.deserialize(colorData);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue