This commit is contained in:
nossr50 2019-09-14 15:44:58 -07:00
parent 777a9d4185
commit 9154b3f083
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Version 2.1.107
Fixed an exploit that allowed automated XP gain for Excavation
Version 2.1.106 Version 2.1.106
Added a few missing blocks to the ability blacklist tables (prevents readying/using abilities on certain blocks that have right click functionality) Added a few missing blocks to the ability blacklist tables (prevents readying/using abilities on certain blocks that have right click functionality)
Updated Japanese locale (thanks ethernetcat) Updated Japanese locale (thanks ethernetcat)

View File

@ -183,9 +183,11 @@ public class BlockListener implements Listener {
if(WorldBlacklist.isWorldBlacklisted(event.getBlock().getWorld())) if(WorldBlacklist.isWorldBlacklisted(event.getBlock().getWorld()))
return; return;
if(BlockUtils.shouldBeWatched(event.getBlock().getState())) BlockState blockState = event.getNewState();
if(BlockUtils.shouldBeWatched(blockState))
{ {
mcMMO.getPlaceStore().setTrue(event.getBlock()); mcMMO.getPlaceStore().setTrue(blockState.getBlock());
} }
} }
@ -198,7 +200,8 @@ public class BlockListener implements Listener {
if(ExperienceConfig.getInstance().preventStoneLavaFarming()) if(ExperienceConfig.getInstance().preventStoneLavaFarming())
{ {
if(event.getNewState().getType() != Material.OBSIDIAN && BlockUtils.shouldBeWatched(event.getNewState()) if(event.getNewState().getType() != Material.OBSIDIAN
&& BlockUtils.shouldBeWatched(event.getNewState())
&& ExperienceConfig.getInstance().doesBlockGiveSkillXP(PrimarySkillType.MINING, event.getNewState().getBlockData())) && ExperienceConfig.getInstance().doesBlockGiveSkillXP(PrimarySkillType.MINING, event.getNewState().getBlockData()))
{ {
mcMMO.getPlaceStore().setTrue(event.getNewState()); mcMMO.getPlaceStore().setTrue(event.getNewState());