aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/DankersSkyblockMod.java
diff options
context:
space:
mode:
authorSychic <47618543+Sychic@users.noreply.github.com>2020-12-17 11:06:49 -0500
committerGitHub <noreply@github.com>2020-12-17 11:06:49 -0500
commit23bcb1e70e88adc90f184a8a5b7868a28ec81d30 (patch)
tree4d41ecd7e86d925a7d654166a12bd37cac7c8cf9 /src/main/java/me/Danker/DankersSkyblockMod.java
parent4b1addfd3d47085811693764c15a7dfafd443c6c (diff)
parentd5fcd64708e6f41cdc91e9dbc8b8465099a14a76 (diff)
downloadSkyblockMod-23bcb1e70e88adc90f184a8a5b7868a28ec81d30.tar.gz
SkyblockMod-23bcb1e70e88adc90f184a8a5b7868a28ec81d30.tar.bz2
SkyblockMod-23bcb1e70e88adc90f184a8a5b7868a28ec81d30.zip
Merge branch 'development' into development
Diffstat (limited to 'src/main/java/me/Danker/DankersSkyblockMod.java')
-rw-r--r--src/main/java/me/Danker/DankersSkyblockMod.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java
index 1023cdb..086d579 100644
--- a/src/main/java/me/Danker/DankersSkyblockMod.java
+++ b/src/main/java/me/Danker/DankersSkyblockMod.java
@@ -2924,6 +2924,11 @@ public class DankersSkyblockMod
Blocks.oak_door,
Blocks.skull
));
+ ArrayList<Block> flowerPlaceable = new ArrayList<>(Arrays.asList(
+ Blocks.grass,
+ Blocks.dirt,
+ Blocks.flower_pot
+ ));
if (Utils.inDungeons) {
interactables.add(Blocks.coal_block);
interactables.add(Blocks.stained_hardened_clay);
@@ -2936,6 +2941,14 @@ public class DankersSkyblockMod
event.setCanceled(true);
}
}
+ 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);
+ }
+ }
}
}