aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2018-07-09 18:28:20 +1000
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2018-07-09 18:28:20 +1000
commit641c635cdad2b93cebfaad94c70235a2bcd179f1 (patch)
treeb7dee4bbf7a46027a70cacf6aef5ed033f6b076a /src/Java/gtPlusPlus/core
parent0b14ec3f1d19c936819316ba924074dc8de4cb2e (diff)
downloadGT5-Unofficial-641c635cdad2b93cebfaad94c70235a2bcd179f1.tar.gz
GT5-Unofficial-641c635cdad2b93cebfaad94c70235a2bcd179f1.tar.bz2
GT5-Unofficial-641c635cdad2b93cebfaad94c70235a2bcd179f1.zip
% Changed the Villagers the spawn in Outback/Desert biomes to be exclusively Natives.
% Tweaked debug tool to not remove GT ores and tiles. % Changed the hut the natives get, it's now more of an igloo shape. $ Fixed BoP Issue with Australia Generation.
Diffstat (limited to 'src/Java/gtPlusPlus/core')
-rw-r--r--src/Java/gtPlusPlus/core/item/general/ItemAreaClear.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Java/gtPlusPlus/core/item/general/ItemAreaClear.java b/src/Java/gtPlusPlus/core/item/general/ItemAreaClear.java
index 09c4fdfc6b..5be184b3db 100644
--- a/src/Java/gtPlusPlus/core/item/general/ItemAreaClear.java
+++ b/src/Java/gtPlusPlus/core/item/general/ItemAreaClear.java
@@ -2,6 +2,8 @@ package gtPlusPlus.core.item.general;
import java.util.List;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.common.blocks.GT_Block_Ores;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
@@ -130,10 +132,12 @@ public class ItemAreaClear extends CoreItem {
for (int j=0; j<20; j++){
for (int i=0; i<50; i++){
- if (!(world.getBlock(pos.xPos+i, pos.yPos+j, pos.zPos) instanceof BlockBaseOre)){
+ if (!(world.getBlock(pos.xPos+i, pos.yPos+j, pos.zPos) instanceof BlockBaseOre) &&
+ !(world.getBlock(pos.xPos+i, pos.yPos+j, pos.zPos) instanceof IGregTechTileEntity) &&
+ !(world.getBlock(pos.xPos+i, pos.yPos+j, pos.zPos) instanceof GT_Block_Ores)){
if (!world.isAirBlock(pos.xPos+i, pos.yPos+j, pos.zPos) &&
world.getBlock(pos.xPos+i, pos.yPos+j, pos.zPos) != Blocks.bedrock){
- int chance = MathUtils.randInt(0, 100);
+ int chance = MathUtils.randInt(0, 500);
if (chance <= 0){
if (pos.yPos+j <= 50){
world.setBlock(pos.xPos+i, pos.yPos+j, pos.zPos, Blocks.glowstone);
@@ -141,7 +145,7 @@ public class ItemAreaClear extends CoreItem {
}
else {
if ((world.getBlock(pos.xPos+i, pos.yPos+j, pos.zPos) == Blocks.glowstone && ((pos.yPos+j) > 50)) || world.getBlock(pos.xPos+i, pos.yPos+j, pos.zPos) != Blocks.glowstone){
- world.setBlock(pos.xPos+i, pos.yPos+j, pos.zPos, Blocks.air);
+ world.setBlockToAir(pos.xPos+i, pos.yPos+j, pos.zPos);
}
}
}