Added SpawnPressesInMeteorites to disable press spawns.
This commit is contained in:
@@ -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"),
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user