Fix a typo in NmsBasics.

This commit is contained in:
Olof Larsson 2016-12-27 20:53:08 +01:00
parent a9c072e1d2
commit 84354c3883
No known key found for this signature in database
GPG Key ID: BBEF14F97DA52474
2 changed files with 8 additions and 9 deletions

View File

@ -1,5 +1,6 @@
package com.massivecraft.massivecore.nms; package com.massivecraft.massivecore.nms;
import com.massivecraft.massivecore.mixin.Mixin;
import org.bukkit.World; import org.bukkit.World;
import org.bukkit.block.Sign; import org.bukkit.block.Sign;
import org.bukkit.entity.Entity; import org.bukkit.entity.Entity;
@ -8,8 +9,6 @@ import org.bukkit.scoreboard.Objective;
import org.bukkit.scoreboard.Scoreboard; import org.bukkit.scoreboard.Scoreboard;
import org.bukkit.scoreboard.Team; import org.bukkit.scoreboard.Team;
import com.massivecraft.massivecore.mixin.Mixin;
public class NmsBasics extends Mixin public class NmsBasics extends Mixin
{ {
// -------------------------------------------- // // -------------------------------------------- //

View File

@ -1,7 +1,7 @@
package com.massivecraft.massivecore.nms; package com.massivecraft.massivecore.nms;
import java.lang.reflect.Field; import com.massivecraft.massivecore.particleeffect.ReflectionUtils.PackageType;
import java.lang.reflect.Method; import com.massivecraft.massivecore.util.ReflectionUtil;
import org.bukkit.World; import org.bukkit.World;
import org.bukkit.block.Sign; import org.bukkit.block.Sign;
import org.bukkit.entity.Entity; import org.bukkit.entity.Entity;
@ -10,8 +10,8 @@ import org.bukkit.scoreboard.Objective;
import org.bukkit.scoreboard.Scoreboard; import org.bukkit.scoreboard.Scoreboard;
import org.bukkit.scoreboard.Team; import org.bukkit.scoreboard.Team;
import com.massivecraft.massivecore.particleeffect.ReflectionUtils.PackageType; import java.lang.reflect.Field;
import com.massivecraft.massivecore.util.ReflectionUtil; import java.lang.reflect.Method;
public class NmsBasics17R4P extends NmsBasics public class NmsBasics17R4P extends NmsBasics
{ {
@ -56,7 +56,7 @@ public class NmsBasics17R4P extends NmsBasics
// org.bukkit.craftbukkit.block.CraftSign // org.bukkit.craftbukkit.block.CraftSign
private Class<?> classCraftSign; private Class<?> classCraftSign;
// org.bukkit.craftbukkit.block.CraftSign#sign // org.bukkit.craftbukkit.block.CraftSign#sign
private Field fieldclassCraftSignHandle; private Field fieldCraftSignHandle;
// GET BUKKIT // GET BUKKIT
// net.minecraft.server.Entity // net.minecraft.server.Entity
@ -106,7 +106,7 @@ public class NmsBasics17R4P extends NmsBasics
this.fieldCraftObjectiveHandle = ReflectionUtil.getField(this.classCraftObjective, "objective"); this.fieldCraftObjectiveHandle = ReflectionUtil.getField(this.classCraftObjective, "objective");
this.classCraftSign = PackageType.CRAFTBUKKIT_BLOCK.getClass("CraftSign"); this.classCraftSign = PackageType.CRAFTBUKKIT_BLOCK.getClass("CraftSign");
this.fieldclassCraftSignHandle = ReflectionUtil.getField(this.classCraftSign, "sign"); this.fieldCraftSignHandle = ReflectionUtil.getField(this.classCraftSign, "sign");
// GET BUKKIT // GET BUKKIT
this.classNmsEntity = PackageType.MINECRAFT_SERVER.getClass("Entity"); this.classNmsEntity = PackageType.MINECRAFT_SERVER.getClass("Entity");
@ -167,7 +167,7 @@ public class NmsBasics17R4P extends NmsBasics
public <T> T getHandle(Sign sign) public <T> T getHandle(Sign sign)
{ {
if (sign == null) return null; if (sign == null) return null;
return ReflectionUtil.getField(this.fieldclassCraftSignHandle, sign); return ReflectionUtil.getField(this.fieldCraftSignHandle, sign);
} }
// -------------------------------------------- // // -------------------------------------------- //