|
@@ -127,10 +127,8 @@ public class BlockListener implements Listener {
|
|
|
Block movedBlock;
|
|
|
|
|
|
for (Block b : event.getBlocks()) {
|
|
|
- if (BlockUtils.shouldBeWatched(b.getState())) {
|
|
|
- movedBlock = b.getRelative(direction);
|
|
|
- mcMMO.getPlaceStore().setTrue(movedBlock);
|
|
|
- }
|
|
|
+ movedBlock = b.getRelative(direction);
|
|
|
+ mcMMO.getPlaceStore().setTrue(movedBlock);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -190,7 +188,6 @@ public class BlockListener implements Listener {
|
|
|
if(ExperienceConfig.getInstance().preventStoneLavaFarming())
|
|
|
{
|
|
|
if(event.getNewState().getType() != Material.OBSIDIAN
|
|
|
- && BlockUtils.shouldBeWatched(event.getNewState())
|
|
|
&& ExperienceConfig.getInstance().doesBlockGiveSkillXP(PrimarySkillType.MINING, event.getNewState().getBlockData()))
|
|
|
{
|
|
|
mcMMO.getPlaceStore().setTrue(event.getNewState());
|
|
@@ -208,11 +205,8 @@ public class BlockListener implements Listener {
|
|
|
BlockState blockState = event.getBlock().getState();
|
|
|
|
|
|
/* Check if the blocks placed should be monitored so they do not give out XP in the future */
|
|
|
- if (BlockUtils.shouldBeWatched(blockState)) {
|
|
|
- // Don't count de-barking wood
|
|
|
-// if (!Tag.LOGS.isTagged(event.getBlockReplacedState().getType()) || !Tag.LOGS.isTagged(event.getBlockPlaced().getType()))
|
|
|
- mcMMO.getPlaceStore().setTrue(blockState);
|
|
|
- }
|
|
|
+// if (!Tag.LOGS.isTagged(event.getBlockReplacedState().getType()) || !Tag.LOGS.isTagged(event.getBlockPlaced().getType()))
|
|
|
+ mcMMO.getPlaceStore().setTrue(blockState);
|
|
|
|
|
|
/* WORLD BLACKLIST CHECK */
|
|
|
if(WorldBlacklist.isWorldBlacklisted(event.getBlock().getWorld())) {
|
|
@@ -250,9 +244,7 @@ public class BlockListener implements Listener {
|
|
|
BlockState blockState = replacedBlockState.getBlock().getState();
|
|
|
|
|
|
/* Check if the blocks placed should be monitored so they do not give out XP in the future */
|
|
|
- if (BlockUtils.shouldBeWatched(blockState)) {
|
|
|
- mcMMO.getPlaceStore().setTrue(blockState);
|
|
|
- }
|
|
|
+ mcMMO.getPlaceStore().setTrue(blockState);
|
|
|
}
|
|
|
|
|
|
/* WORLD BLACKLIST CHECK */
|
|
@@ -276,9 +268,9 @@ public class BlockListener implements Listener {
|
|
|
|
|
|
BlockState blockState = event.getBlock().getState();
|
|
|
|
|
|
- if (!BlockUtils.shouldBeWatched(blockState)) {
|
|
|
- return;
|
|
|
- }
|
|
|
+// if (!BlockUtils.shouldBeWatched(blockState)) {
|
|
|
+// return;
|
|
|
+// }
|
|
|
|
|
|
mcMMO.getPlaceStore().setFalse(blockState);
|
|
|
}
|
|
@@ -308,9 +300,9 @@ public class BlockListener implements Listener {
|
|
|
BlockState blockState = event.getBlock().getState();
|
|
|
Location location = blockState.getLocation();
|
|
|
|
|
|
- if (!BlockUtils.shouldBeWatched(blockState)) {
|
|
|
- return;
|
|
|
- }
|
|
|
+// if (!BlockUtils.shouldBeWatched(blockState)) {
|
|
|
+// return;
|
|
|
+// }
|
|
|
|
|
|
/* ALCHEMY - Cancel any brew in progress for that BrewingStand */
|
|
|
if (blockState instanceof BrewingStand && Alchemy.brewingStandMap.containsKey(location)) {
|