mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-11-28 12:55:34 +01:00
Fix typo (#543)
This commit is contained in:
parent
5242973fe8
commit
e7c5078035
@ -167,7 +167,7 @@ public class ContainerLogger extends Queue {
|
|||||||
if (item != null) {
|
if (item != null) {
|
||||||
if (item.getAmount() > 0 && !Util.isAir(item.getType())) {
|
if (item.getAmount() > 0 && !Util.isAir(item.getType())) {
|
||||||
// Object[] metadata = new Object[] { slot, item.getItemMeta() };
|
// Object[] metadata = new Object[] { slot, item.getItemMeta() };
|
||||||
List<List<Map<String, Object>>> metadata = ItemMetaHandler.seralize(item, type, faceData, slot);
|
List<List<Map<String, Object>>> metadata = ItemMetaHandler.serialize(item, type, faceData, slot);
|
||||||
if (metadata.size() == 0) {
|
if (metadata.size() == 0) {
|
||||||
metadata = null;
|
metadata = null;
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ public class ItemLogger {
|
|||||||
for (ItemStack item : items) {
|
for (ItemStack item : items) {
|
||||||
if (item != null && item.getAmount() > 0 && !Util.isAir(item.getType())) {
|
if (item != null && item.getAmount() > 0 && !Util.isAir(item.getType())) {
|
||||||
// Object[] metadata = new Object[] { slot, item.getItemMeta() };
|
// Object[] metadata = new Object[] { slot, item.getItemMeta() };
|
||||||
List<List<Map<String, Object>>> data = ItemMetaHandler.seralize(item, null, null, 0);
|
List<List<Map<String, Object>>> data = ItemMetaHandler.serialize(item, null, null, 0);
|
||||||
if (data.size() == 0) {
|
if (data.size() == 0) {
|
||||||
data = null;
|
data = null;
|
||||||
}
|
}
|
||||||
|
@ -377,7 +377,7 @@ public final class EntityDeathListener extends Queue implements Listener {
|
|||||||
List<Object> ingredients = new ArrayList<>();
|
List<Object> ingredients = new ArrayList<>();
|
||||||
List<Object> itemMap = new ArrayList<>();
|
List<Object> itemMap = new ArrayList<>();
|
||||||
ItemStack item = merchantRecipe.getResult().clone();
|
ItemStack item = merchantRecipe.getResult().clone();
|
||||||
List<List<Map<String, Object>>> metadata = ItemMetaHandler.seralize(item, item.getType(), null, 0);
|
List<List<Map<String, Object>>> metadata = ItemMetaHandler.serialize(item, item.getType(), null, 0);
|
||||||
item.setItemMeta(null);
|
item.setItemMeta(null);
|
||||||
itemMap.add(item.serialize());
|
itemMap.add(item.serialize());
|
||||||
itemMap.add(metadata);
|
itemMap.add(metadata);
|
||||||
@ -389,7 +389,7 @@ public final class EntityDeathListener extends Queue implements Listener {
|
|||||||
for (ItemStack ingredient : merchantRecipe.getIngredients()) {
|
for (ItemStack ingredient : merchantRecipe.getIngredients()) {
|
||||||
itemMap = new ArrayList<>();
|
itemMap = new ArrayList<>();
|
||||||
item = ingredient.clone();
|
item = ingredient.clone();
|
||||||
metadata = ItemMetaHandler.seralize(item, item.getType(), null, 0);
|
metadata = ItemMetaHandler.serialize(item, item.getType(), null, 0);
|
||||||
item.setItemMeta(null);
|
item.setItemMeta(null);
|
||||||
itemMap.add(item.serialize());
|
itemMap.add(item.serialize());
|
||||||
itemMap.add(metadata);
|
itemMap.add(metadata);
|
||||||
|
@ -1415,7 +1415,7 @@ public class Util extends Queue {
|
|||||||
Map<String, Object> itemMap = new HashMap<>();
|
Map<String, Object> itemMap = new HashMap<>();
|
||||||
if (itemStack != null && !itemStack.getType().equals(Material.AIR)) {
|
if (itemStack != null && !itemStack.getType().equals(Material.AIR)) {
|
||||||
ItemStack item = itemStack.clone();
|
ItemStack item = itemStack.clone();
|
||||||
List<List<Map<String, Object>>> metadata = ItemMetaHandler.seralize(item, null, faceData, slot);
|
List<List<Map<String, Object>>> metadata = ItemMetaHandler.serialize(item, null, faceData, slot);
|
||||||
item.setItemMeta(null);
|
item.setItemMeta(null);
|
||||||
itemMap.put("0", item.serialize());
|
itemMap.put("0", item.serialize());
|
||||||
itemMap.put("1", metadata);
|
itemMap.put("1", metadata);
|
||||||
|
@ -115,7 +115,7 @@ public class ItemMetaHandler {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<List<Map<String, Object>>> seralize(ItemStack item, Material type, String faceData, int slot) {
|
public static List<List<Map<String, Object>>> serialize(ItemStack item, Material type, String faceData, int slot) {
|
||||||
List<List<Map<String, Object>>> metadata = new ArrayList<>();
|
List<List<Map<String, Object>>> metadata = new ArrayList<>();
|
||||||
List<Map<String, Object>> list = new ArrayList<>();
|
List<Map<String, Object>> list = new ArrayList<>();
|
||||||
List<Object> modifiers = new ArrayList<>();
|
List<Object> modifiers = new ArrayList<>();
|
||||||
|
Loading…
Reference in New Issue
Block a user