Added SpawnPressesInMeteorites to disable press spawns.

This commit is contained in:
AlgorithmX2
2014-08-24 01:50:22 -05:00
parent 4b83c804cf
commit 6619bfce38
2 changed files with 77 additions and 72 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ public enum AEFeature
CertusQuartzWorldGen("World"), MeteoriteWorldGen("World"), CertusQuartzWorldGen("World"), MeteoriteWorldGen("World"),
DecorativeLights("World"), DecorativeQuartzBlocks("World"), SkyStoneChests("World"), DecorativeLights("World"), DecorativeQuartzBlocks("World"), SkyStoneChests("World"), SpawnPressesInMeteorites("World"),
GrindStone("World"), Flour("World"), Inscriber("World"), GrindStone("World"), Flour("World"), Inscriber("World"),
+5
View File
@@ -18,7 +18,9 @@ import net.minecraft.world.chunk.Chunk;
import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.oredict.OreDictionary; import net.minecraftforge.oredict.OreDictionary;
import appeng.api.AEApi; import appeng.api.AEApi;
import appeng.core.AEConfig;
import appeng.core.WorldSettings; import appeng.core.WorldSettings;
import appeng.core.features.AEFeature;
import appeng.util.InventoryAdaptor; import appeng.util.InventoryAdaptor;
import appeng.util.Platform; import appeng.util.Platform;
@@ -626,6 +628,8 @@ public class MeteoritePlacer
put( w, i, j, k, skystone ); put( w, i, j, k, skystone );
} }
if ( AEConfig.instance.isFeatureEnabled( AEFeature.SpawnPressesInMeteorites ) )
{
put( w, x, y, z, skychest ); put( w, x, y, z, skychest );
TileEntity te = w.getTileEntity( x, y, z ); TileEntity te = w.getTileEntity( x, y, z );
if ( te != null && te instanceof IInventory ) if ( te != null && te instanceof IInventory )
@@ -714,6 +718,7 @@ public class MeteoritePlacer
} }
} }
} }
}
private void Decay(IMetroiteWorld w, int x, int y, int z) private void Decay(IMetroiteWorld w, int x, int y, int z)
{ {