Fixed small but impactful error
https://github.com/TBMCPlugins/DiscordPlugin/issues/19
This commit is contained in:
parent
9661cd3405
commit
62f783e695
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");
|
||||
Object obj = getLoadedPlayers().get(uuid).data.get(mname.substring("get".length()).toLowerCase());
|
||||
if (obj == null)
|
||||
return null;
|
||||
return Optional.empty();
|
||||
if (obj instanceof Short)
|
||||
return Optional.of((T) obj);
|
||||
if (!(Integer.class.isAssignableFrom(obj.getClass())))
|
||||
|
|
Loading…
Reference in a new issue