Skip to content

Commit

Permalink
some minor cleanup, require java 7 for 1.8 slime knights mods
Browse files Browse the repository at this point in the history
  • Loading branch information
progwml6 committed Jan 4, 2015
1 parent 0a46978 commit f246f78
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 29 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Expand Up @@ -35,6 +35,8 @@ repositories {

apply plugin: 'forge'
group = 'mantle'
sourceCompatibility = 1.7
targetCompatibility = 1.7

// Define properties file
ext.configFile = file "build.properties"
Expand Down
10 changes: 5 additions & 5 deletions src/mantle/blocks/abstracts/MultiServantLogic.java
Expand Up @@ -54,10 +54,10 @@ public BlockPos getMasterPosition ()
return master;
}

public void overrideMaster (int x, int y, int z)
public void overrideMaster (BlockPos pos)
{
hasMaster = true;
master = new BlockPos(x, y, z);
master = pos;
state = worldObj.getBlockState(master);
masterBlock = state.getBlock();
}
Expand Down Expand Up @@ -91,7 +91,7 @@ public boolean verifyMaster (IMasterLogic logic, World world, BlockPos pos)
}
else
{
overrideMaster(pos.getX(), pos.getY(), pos.getZ());
overrideMaster(pos);
return true;
}
}
Expand Down Expand Up @@ -195,11 +195,11 @@ public World getWorld ()
}

@Deprecated
public boolean setMaster (int x, int y, int z)
public boolean setMaster (BlockPos pos)
{
if (!hasMaster || worldObj.getBlockState(master) != state || (worldObj.getBlockState(master).getBlock() != masterBlock))
{
overrideMaster(x, y, z);
overrideMaster(pos);
return true;
}
else
Expand Down
24 changes: 0 additions & 24 deletions src/mantle/world/WorldHelper.java

This file was deleted.

0 comments on commit f246f78

Please sign in to comment.