diff options
author | Sychic <47618543+Sychic@users.noreply.github.com> | 2020-12-17 11:06:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-17 11:06:49 -0500 |
commit | 23bcb1e70e88adc90f184a8a5b7868a28ec81d30 (patch) | |
tree | 4d41ecd7e86d925a7d654166a12bd37cac7c8cf9 /src/main/java/me/Danker/DankersSkyblockMod.java | |
parent | 4b1addfd3d47085811693764c15a7dfafd443c6c (diff) | |
parent | d5fcd64708e6f41cdc91e9dbc8b8465099a14a76 (diff) | |
download | SkyblockMod-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.java | 13 |
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); + } + } } } |