Skip to content

Commit

Permalink
Candles require full trust (#1827)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jikoo committed Mar 5, 2022
1 parent eacbe81 commit 6b87e03
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -1751,9 +1751,7 @@ void onPlayerInteract(PlayerInteractEvent event)
clickedBlockType == Material.RESPAWN_ANCHOR ||
clickedBlockType == Material.ROOTED_DIRT ||
clickedBlockType == Material.STONECUTTER ||
clickedBlockType == Material.SWEET_BERRY_BUSH ||
Tag.CANDLES.isTagged(clickedBlockType) ||
Tag.CANDLE_CAKES.isTagged(clickedBlockType)
clickedBlockType == Material.SWEET_BERRY_BUSH
)))
{
if (playerData == null) playerData = this.dataStore.getPlayerData(player.getUniqueId());
Expand Down Expand Up @@ -1865,7 +1863,7 @@ else if (clickedBlock != null && instance.config_claims_preventTheft && (clicked
}
}

//apply rule for note blocks and repeaters and daylight sensors //RoboMWM: Include flower pots
//apply rule for redstone and various decor blocks that require full trust
else if (clickedBlock != null &&
(
clickedBlockType == Material.NOTE_BLOCK ||
Expand All @@ -1874,7 +1872,8 @@ else if (clickedBlock != null &&
clickedBlockType == Material.DAYLIGHT_DETECTOR ||
clickedBlockType == Material.COMPARATOR ||
clickedBlockType == Material.REDSTONE_WIRE ||
Tag.FLOWER_POTS.isTagged(clickedBlockType)
Tag.FLOWER_POTS.isTagged(clickedBlockType) ||
Tag.CANDLES.isTagged(clickedBlockType)
))
{
if (playerData == null) playerData = this.dataStore.getPlayerData(player.getUniqueId());
Expand Down

0 comments on commit 6b87e03

Please sign in to comment.