Conflicts:
	src/main/java/buttondevteam/lib/DebugPotatoAPI.java
This commit is contained in:
alisolarflare 2016-11-19 21:13:33 -05:00
commit 9b645bce07

View file

@ -157,6 +157,8 @@ public class TBMCPlayer implements AutoCloseable {
if (!mname.startsWith("get"))
throw new UnsupportedOperationException("Can only use getIntData from a getXYZ method");
Object obj = getLoadedPlayers().get(uuid).data.get(mname.substring("get".length()).toLowerCase());
if (obj == null)
return null;
if (obj instanceof Short)
return (T) obj;
if (!(Integer.class.isAssignableFrom(obj.getClass())))