aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/rosegoldaddons/features/GemstoneAura.java
diff options
context:
space:
mode:
authorRoseGoldIsntGay <yoavkau@gmail.com>2022-01-18 22:48:36 +0200
committerRoseGoldIsntGay <yoavkau@gmail.com>2022-01-18 22:48:36 +0200
commit5934e8bd301bbbec23d172f88255fac1b9435563 (patch)
treec2f26deb2579e321ca98a297e24ee7865b97a80d /src/main/java/rosegoldaddons/features/GemstoneAura.java
parent252dedff670a8a456ae557b8ac7f1727bb7fd1b1 (diff)
downloadRGA-5934e8bd301bbbec23d172f88255fac1b9435563.tar.gz
RGA-5934e8bd301bbbec23d172f88255fac1b9435563.tar.bz2
RGA-5934e8bd301bbbec23d172f88255fac1b9435563.zip
2.5.4-pre1
- Include ores setting also works for mithril nuker and not just hardstone - Moved memes to memes category (too much scrolling) - Custom Item Macro will now start with a use instead of waiting for the first loop to finish - Fixed prioritize full blocks in gemstone nuker - Deleted tpme (i forgot why i even made it it's literally empty)
Diffstat (limited to 'src/main/java/rosegoldaddons/features/GemstoneAura.java')
-rw-r--r--src/main/java/rosegoldaddons/features/GemstoneAura.java19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/main/java/rosegoldaddons/features/GemstoneAura.java b/src/main/java/rosegoldaddons/features/GemstoneAura.java
index fbbb98d..3e0952b 100644
--- a/src/main/java/rosegoldaddons/features/GemstoneAura.java
+++ b/src/main/java/rosegoldaddons/features/GemstoneAura.java
@@ -36,19 +36,19 @@ public class GemstoneAura {
return;
}
if (event.phase == TickEvent.Phase.END) {
- if(PlayerUtils.pickaxeAbilityReady && Minecraft.getMinecraft().thePlayer != null) {
+ if (PlayerUtils.pickaxeAbilityReady && Minecraft.getMinecraft().thePlayer != null) {
Minecraft.getMinecraft().playerController.sendUseItem(Minecraft.getMinecraft().thePlayer, Minecraft.getMinecraft().theWorld, Minecraft.getMinecraft().thePlayer.inventory.getStackInSlot(Minecraft.getMinecraft().thePlayer.inventory.currentItem));
}
- if(currentDamage > 100) {
+ if (currentDamage > 100) {
currentDamage = 0;
}
- if(blockPos != null) {
+ if (blockPos != null) {
IBlockState blockState = Minecraft.getMinecraft().theWorld.getBlockState(blockPos);
if (blockState.getBlock() != Blocks.stained_glass && blockState.getBlock() != Blocks.stained_glass_pane) {
currentDamage = 0;
}
}
- if(currentDamage == 0) {
+ if (currentDamage == 0) {
blockPos = closestGemstone();
}
if (blockPos != null) {
@@ -113,23 +113,20 @@ public class GemstoneAura {
if (playerPos != null) {
for (BlockPos blockPos : BlockPos.getAllInBox(playerPos.add(vec3i), playerPos.subtract(vec3i))) {
IBlockState blockState = Minecraft.getMinecraft().theWorld.getBlockState(blockPos);
- //Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(blockState.getBlock().toString()));
if (blockState.getBlock() == Blocks.stained_glass) {
chests.add(new Vec3(blockPos.getX() + 0.5, blockPos.getY(), blockPos.getZ() + 0.5));
}
- if(!Main.configFile.prioblocks) {
+ if (!Main.configFile.prioblocks) {
if (blockState.getBlock() == Blocks.stained_glass_pane) {
chests.add(new Vec3(blockPos.getX() + 0.5, blockPos.getY(), blockPos.getZ() + 0.5));
}
}
}
- if(Main.configFile.prioblocks) {
+ if (Main.configFile.prioblocks) {
for (BlockPos blockPos : BlockPos.getAllInBox(playerPos.add(vec3i), playerPos.subtract(vec3i))) {
IBlockState blockState = Minecraft.getMinecraft().theWorld.getBlockState(blockPos);
- if(!Main.configFile.prioblocks) {
- if (blockState.getBlock() == Blocks.stained_glass_pane) {
- chests.add(new Vec3(blockPos.getX() + 0.5, blockPos.getY(), blockPos.getZ() + 0.5));
- }
+ if (blockState.getBlock() == Blocks.stained_glass_pane) {
+ chests.add(new Vec3(blockPos.getX() + 0.5, blockPos.getY(), blockPos.getZ() + 0.5));
}
}
}