mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-26 06:53:01 +00:00
Fixed bad cast with That-Shall-Not-Be-Named by making damn sure the type of the
lists in World are of the proper type and creating the lists if they are not.
This commit is contained in:
1 parent
ede2d7f5b3
commit
5eb742e3d7
15 files changed
+85
-35
No files matched your search
@@ -19,7 +19,7 @@ public class CommandEntityCreate extends CommandBase {
|
||||
@Override
|
||||
public String getCommandUsage(ICommandSender icommandsender) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
return "";
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -45,10 +45,13 @@ public class CommandEntityCreate extends CommandBase {
|
||||
@Override
|
||||
public boolean canCommandSenderUseCommand(ICommandSender sender)
|
||||
{
|
||||
if (sender instanceof DedicatedServer) return true;
|
||||
//if ((sender instanceof EntityPlayerMP) && ((EntityPlayerMP)sender).playerNetServerHandler.netManager instanceof MemoryConnection) return true;
|
||||
if (sender instanceof EntityPlayerMP)
|
||||
return PlayerTracker.INSTANCE.isPrivileged((EntityPlayerMP)sender);
|
||||
|
||||
if (sender instanceof DedicatedServer) return true;
|
||||
if (!(sender instanceof DedicatedServer) && !(sender instanceof EntityPlayerMP)) return true;
|
||||
return PlayerTracker.INSTANCE.isPrivileged((EntityPlayerMP)sender);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user