This commit is contained in:
nossr50 2023-07-09 14:43:38 -07:00
parent 78596dc00e
commit 24a57fab3d
3 changed files with 9 additions and 7 deletions

View File

@ -1,4 +1,5 @@
Version 2.1.222 Version 2.1.222
Fixed dupe exploit
Glow Lichen default XP changed from 200 to 5 Glow Lichen default XP changed from 200 to 5
A lot of mcMMO logging was moved from INFO to DEBUG, this should reduce the amount of noise in your logs and console A lot of mcMMO logging was moved from INFO to DEBUG, this should reduce the amount of noise in your logs and console

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.gmail.nossr50.mcMMO</groupId> <groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId> <artifactId>mcMMO</artifactId>
<version>2.1.222-SNAPSHOT</version> <version>2.1.222</version>
<name>mcMMO</name> <name>mcMMO</name>
<url>https://github.com/mcMMO-Dev/mcMMO</url> <url>https://github.com/mcMMO-Dev/mcMMO</url>
<scm> <scm>

View File

@ -134,15 +134,16 @@ public class BlockListener implements Listener {
return; return;
} }
BlockFace direction = event.getDirection(); final BlockFace direction = event.getDirection();
Block movedBlock;
for (Block block : event.getBlocks()) { Bukkit.getScheduler().scheduleSyncDelayedTask(mcMMO.p, () -> {
movedBlock = block.getRelative(direction); for (final Block block : event.getBlocks()) {
final Block movedBlock = block.getRelative(direction);
if(BlockUtils.isWithinWorldBounds(movedBlock)) { if(BlockUtils.isWithinWorldBounds(movedBlock)) {
BlockUtils.setUnnaturalBlock(block); BlockUtils.setUnnaturalBlock(movedBlock);
} }
} }});
} }
/** /**