mirror of
https://github.com/PretzelJohn/VillagerTradeLimiter.git
synced 2024-12-01 22:54:06 +01:00
Fixed typo for nms logic
This commit is contained in:
parent
fff230d85d
commit
4c12bb4bda
@ -7,7 +7,6 @@ import com.pretzel.dev.villagertradelimiter.lib.Util;
|
|||||||
import com.pretzel.dev.villagertradelimiter.listeners.PlayerListener;
|
import com.pretzel.dev.villagertradelimiter.listeners.PlayerListener;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
import org.bukkit.configuration.file.YamlConfiguration;
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ public class NBTContainer {
|
|||||||
final CraftEntity craftEntity = new CraftEntity(nms);
|
final CraftEntity craftEntity = new CraftEntity(nms);
|
||||||
final NMSEntity nmsEntity = new NMSEntity(nms);
|
final NMSEntity nmsEntity = new NMSEntity(nms);
|
||||||
final Class<?> tgc;
|
final Class<?> tgc;
|
||||||
if(nms.getVersion().compareTo("v1.17_R1") < 0)
|
if(nms.getVersion().compareTo("v1_17_R1") < 0)
|
||||||
tgc = nms.getNMSClass("server."+nms.getVersion()+".NBTTagCompound");
|
tgc = nms.getNMSClass("server."+nms.getVersion()+".NBTTagCompound");
|
||||||
else
|
else
|
||||||
tgc = nms.getNMSClass("nbt.NBTTagCompound");
|
tgc = nms.getNMSClass("nbt.NBTTagCompound");
|
||||||
|
@ -11,7 +11,7 @@ public class NBTTagList
|
|||||||
public NBTTagList(final NMS nms, final Object self) {
|
public NBTTagList(final NMS nms, final Object self) {
|
||||||
this.nms = nms;
|
this.nms = nms;
|
||||||
this.self = self;
|
this.self = self;
|
||||||
if(nms.getVersion().compareTo("v1.17_R1") < 0)
|
if(nms.getVersion().compareTo("v1_17_R1") < 0)
|
||||||
this.c = nms.getNMSClass("server."+nms.getVersion()+".NBTTagList");
|
this.c = nms.getNMSClass("server."+nms.getVersion()+".NBTTagList");
|
||||||
else
|
else
|
||||||
this.c = nms.getNMSClass("nbt.NBTTagList");
|
this.c = nms.getNMSClass("nbt.NBTTagList");
|
||||||
|
@ -8,7 +8,7 @@ public class NMSEntity {
|
|||||||
|
|
||||||
public NMSEntity(final NMS nms) {
|
public NMSEntity(final NMS nms) {
|
||||||
this.nms = nms;
|
this.nms = nms;
|
||||||
if(nms.getVersion().compareTo("v1.17_R1") < 0)
|
if(nms.getVersion().compareTo("v1_17_R1") < 0)
|
||||||
this.c = nms.getNMSClass("server."+nms.getVersion()+".Entity");
|
this.c = nms.getNMSClass("server."+nms.getVersion()+".Entity");
|
||||||
else
|
else
|
||||||
this.c = nms.getNMSClass("world.entity.Entity");
|
this.c = nms.getNMSClass("world.entity.Entity");
|
||||||
|
Loading…
Reference in New Issue
Block a user