!Fixed typos in NMS code

This commit is contained in:
Indyuce 2019-10-25 17:34:26 +02:00
parent d5114e289f
commit f0665dfd68
4 changed files with 22 additions and 20 deletions

View File

@ -120,15 +120,16 @@ public class NMSHandler_1_12_R1 implements NMSHandler {
@Override
public NBTItem getNBTItem(org.bukkit.inventory.ItemStack item) {
return new NBTItem_v1_12_1(item);
return new NBTItem_v1_12_R1(item);
}
public class NBTItem_v1_12_1 extends NBTItem {
private ItemStack nms;
private NBTTagCompound compound;
public class NBTItem_v1_12_R1 extends NBTItem {
private final ItemStack nms;
private final NBTTagCompound compound;
public NBTItem_v1_12_1(org.bukkit.inventory.ItemStack item) {
public NBTItem_v1_12_R1(org.bukkit.inventory.ItemStack item) {
super(item);
nms = CraftItemStack.asNMSCopy(item);
compound = nms.hasTag() ? nms.getTag() : new NBTTagCompound();
}

View File

@ -119,15 +119,16 @@ public class NMSHandler_1_13_R1 implements NMSHandler {
@Override
public NBTItem getNBTItem(org.bukkit.inventory.ItemStack item) {
return new NBTItem_v1_13_2(item);
return new NBTItem_v1_13_R1(item);
}
public class NBTItem_v1_13_2 extends NBTItem {
private ItemStack nms;
private NBTTagCompound compound;
public class NBTItem_v1_13_R1 extends NBTItem {
private final ItemStack nms;
private final NBTTagCompound compound;
public NBTItem_v1_13_2(org.bukkit.inventory.ItemStack item) {
public NBTItem_v1_13_R1(org.bukkit.inventory.ItemStack item) {
super(item);
nms = CraftItemStack.asNMSCopy(item);
compound = nms.hasTag() ? nms.getTag() : new NBTTagCompound();
}

View File

@ -119,14 +119,14 @@ public class NMSHandler_1_13_R2 implements NMSHandler {
@Override
public NBTItem getNBTItem(org.bukkit.inventory.ItemStack item) {
return new NBTItem_v1_13_2(item);
return new NBTItem_v1_13_R2(item);
}
public class NBTItem_v1_13_2 extends NBTItem {
private ItemStack nms;
private NBTTagCompound compound;
public class NBTItem_v1_13_R2 extends NBTItem {
private final ItemStack nms;
private final NBTTagCompound compound;
public NBTItem_v1_13_2(org.bukkit.inventory.ItemStack item) {
public NBTItem_v1_13_R2(org.bukkit.inventory.ItemStack item) {
super(item);
nms = CraftItemStack.asNMSCopy(item);

View File

@ -139,14 +139,14 @@ public class NMSHandler_1_14_R1 implements NMSHandler {
@Override
public NBTItem getNBTItem(org.bukkit.inventory.ItemStack item) {
return new NBTItem_v1_13_2(item);
return new NBTItem_v1_14_R1(item);
}
public class NBTItem_v1_13_2 extends NBTItem {
private ItemStack nms;
private NBTTagCompound compound;
public class NBTItem_v1_14_R1 extends NBTItem {
private final ItemStack nms;
private final NBTTagCompound compound;
public NBTItem_v1_13_2(org.bukkit.inventory.ItemStack item) {
public NBTItem_v1_14_R1(org.bukkit.inventory.ItemStack item) {
super(item);
nms = CraftItemStack.asNMSCopy(item);