mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fixes #4056
This commit is contained in:
parent
777a9d4185
commit
9154b3f083
@ -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)
|
||||||
|
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user