Merge branch 'master' of https://github.com/TBMCPlugins/ButtonCore.git
This commit is contained in:
commit
2cf12399ec
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ public class TBMCPlayer implements AutoCloseable {
|
||||||
throw new UnsupportedOperationException("Can only use getIntData from a getXYZ method");
|
throw new UnsupportedOperationException("Can only use getIntData from a getXYZ method");
|
||||||
Object obj = getLoadedPlayers().get(uuid).data.get(mname.substring("get".length()).toLowerCase());
|
Object obj = getLoadedPlayers().get(uuid).data.get(mname.substring("get".length()).toLowerCase());
|
||||||
if (obj == null)
|
if (obj == null)
|
||||||
return null;
|
return Optional.empty();
|
||||||
if (obj instanceof Short)
|
if (obj instanceof Short)
|
||||||
return Optional.of((T) obj);
|
return Optional.of((T) obj);
|
||||||
if (!(Integer.class.isAssignableFrom(obj.getClass())))
|
if (!(Integer.class.isAssignableFrom(obj.getClass())))
|
||||||
|
|
Loading…
Reference in a new issue