Skip to content

Commit

Permalink
Fixed portable radar crash in v1.7.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
Geforce132 committed Apr 13, 2015
1 parent 494b3a0 commit 37b3cf1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void addEffectsToPlayers(World par1World, int par2, int par3, int par4){

entityplayer = (EntityPlayer)iterator.next();

if(HelpfulMethods.getPlayersFromModule(par1World, par2, par3, par4, EnumCustomModules.WHITELIST).contains(entityplayermp.getCommandSenderName().toLowerCase())){ continue; }
if(((CustomizableSCTE) par1World.getTileEntity(par2, par3, par4)).hasModule(EnumCustomModules.WHITELIST) && HelpfulMethods.getPlayersFromModule(par1World, par2, par3, par4, EnumCustomModules.WHITELIST).contains(entityplayermp.getCommandSenderName().toLowerCase())){ continue; }

if(this.isOwnerOnline(((TileEntityPortableRadar)par1World.getTileEntity(par2, par3, par4)).getUsername())){
if(!((TileEntityPortableRadar)par1World.getTileEntity(par2, par3, par4)).isEmped()){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public class mod_SecurityCraft {
private static final String MOTU = "Thanks for all your suggestions!";

//TODO UPDATE 'RECIPES' and 'HELP' ArrayList's.
//TODO ********************************* This is v1.7.4 for MC 1.7.10!
protected static final String VERSION = "v1.7.4";
//TODO ********************************* This is v1.7.4.1 for MC 1.7.10!
protected static final String VERSION = "v1.7.4.1";
protected static final String FORGEVERSION = "required-after:Forge@[10.13.0.1180,)";


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ public void addEffectsToPlayers(World par1World, BlockPos pos, IBlockState state

entityplayer = (EntityPlayer)iterator.next();

System.out.println(((TileEntityPortableRadar)par1World.getTileEntity(pos)).getUsername());
if(entityplayermp != null && HelpfulMethods.getPlayersFromModule(par1World, pos, EnumCustomModules.WHITELIST).contains(entityplayermp.getName().toLowerCase())){ continue; }
if(entityplayermp != null && ((CustomizableSCTE) par1World.getTileEntity(pos)).hasModule(EnumCustomModules.WHITELIST) && HelpfulMethods.getPlayersFromModule(par1World, pos, EnumCustomModules.WHITELIST).contains(entityplayermp.getName().toLowerCase())){ continue; }

if(this.isOwnerOnline(((TileEntityPortableRadar)par1World.getTileEntity(pos)).getUsername())){
HelpfulMethods.sendMessageToPlayer(entityplayermp, ((TileEntityPortableRadar)par1World.getTileEntity(pos)).hasCustomName() ? (EnumChatFormatting.ITALIC + entityplayer.getName() + EnumChatFormatting.RESET +" is near your portable radar named " + EnumChatFormatting.ITALIC + ((TileEntityPortableRadar)par1World.getTileEntity(pos)).getCustomName() + EnumChatFormatting.RESET + ".") : (EnumChatFormatting.ITALIC + entityplayer.getName() + EnumChatFormatting.RESET + " is near a portable radar (at " + Utils.getFormattedCoordinates(pos) + ")."), null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class mod_SecurityCraft {

//TODO UPDATE 'RECIPES' and 'HELP' ArrayList's.
//TODO ********************************* This is v1.7.4 for MC 1.8!
protected static final String VERSION = "v1.7.4";
protected static final String VERSION = "v1.7.4.1";
protected static final String FORGEVERSION = "required-after:Forge@[11.14.0.1252,)";


Expand Down

0 comments on commit 37b3cf1

Please sign in to comment.