diff options
author | bowser0000 <bowser0000@gmail.com> | 2021-04-02 17:26:21 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2021-04-02 17:26:21 -0400 |
commit | df1f83cf4ddb80969d2086cf1d7a86df9dc90653 (patch) | |
tree | 5dde5a1bf277e779f23e3476187227e2671b5944 /src/main/java/me/Danker/features/BlockPlacingFlowers.java | |
parent | 032cbaea86a08b98a239257f464a00a925068fda (diff) | |
download | SkyblockMod-df1f83cf4ddb80969d2086cf1d7a86df9dc90653.tar.gz SkyblockMod-df1f83cf4ddb80969d2086cf1d7a86df9dc90653.tar.bz2 SkyblockMod-df1f83cf4ddb80969d2086cf1d7a86df9dc90653.zip |
Remove features
Remove blocking starting wrong slayer quest
Remove blocking using abilities
Remove placing flower weapons
Remove blocking misclicks in solvers
Remove F7 arrow terminal solver
Diffstat (limited to 'src/main/java/me/Danker/features/BlockPlacingFlowers.java')
-rw-r--r-- | src/main/java/me/Danker/features/BlockPlacingFlowers.java | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/main/java/me/Danker/features/BlockPlacingFlowers.java b/src/main/java/me/Danker/features/BlockPlacingFlowers.java deleted file mode 100644 index 9bfc986..0000000 --- a/src/main/java/me/Danker/features/BlockPlacingFlowers.java +++ /dev/null @@ -1,44 +0,0 @@ -package me.Danker.features; - -import me.Danker.commands.ToggleCommand; -import me.Danker.utils.Utils; -import net.minecraft.block.Block; -import net.minecraft.client.Minecraft; -import net.minecraft.init.Blocks; -import net.minecraft.item.ItemStack; -import net.minecraftforge.event.entity.player.PlayerInteractEvent; -import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; - -import java.util.ArrayList; -import java.util.Arrays; - -public class BlockPlacingFlowers { - - @SubscribeEvent - public void onInteract(PlayerInteractEvent event) { - if (!Utils.inSkyblock || Minecraft.getMinecraft().thePlayer != event.entityPlayer) return; - ItemStack item = event.entityPlayer.getHeldItem(); - if (item == null) return; - - if (event.action == PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK) { - Block block = Minecraft.getMinecraft().theWorld.getBlockState(event.pos).getBlock(); - - ArrayList<Block> flowerPlaceable = new ArrayList<>(Arrays.asList( - Blocks.grass, - Blocks.dirt, - Blocks.flower_pot, - Blocks.tallgrass, - Blocks.double_plant - )); - if (flowerPlaceable.contains(block)) { - if (ToggleCommand.flowerWeaponsToggled && item.getDisplayName().contains("Flower of Truth")) { - event.setCanceled(true); - } - if (ToggleCommand.flowerWeaponsToggled && item.getDisplayName().contains("Spirit Sceptre")) { - event.setCanceled(true); - } - } - } - } - -} |