mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
parent
0aa67727f5
commit
037022b175
@ -28,6 +28,7 @@ Version 1.5.01-dev
|
|||||||
= Fixed bug with setting custom names and lore in treasures config
|
= Fixed bug with setting custom names and lore in treasures config
|
||||||
= Fixed bug which would cause a NullPointerException with getFlowerAndGrassXp()
|
= Fixed bug which would cause a NullPointerException with getFlowerAndGrassXp()
|
||||||
= Fixed bug which could cause and SQLException regarding the connection property 'maxReconnects'.
|
= Fixed bug which could cause and SQLException regarding the connection property 'maxReconnects'.
|
||||||
|
= Fixed bug where falling blocks were incorrectly tracked
|
||||||
! Changed SecondaryAbilityEvent to implement Cancellable and it now gets fired for damage related secondary abilities
|
! Changed SecondaryAbilityEvent to implement Cancellable and it now gets fired for damage related secondary abilities
|
||||||
! Changed the way mcMMO handles bonus damage, updated for the new damage event API
|
! Changed the way mcMMO handles bonus damage, updated for the new damage event API
|
||||||
! Changed player data saving. Save tasks are now asynchronous
|
! Changed player data saving. Save tasks are now asynchronous
|
||||||
|
@ -109,7 +109,9 @@ public class EntityListener implements Listener {
|
|||||||
public void onEntityChangeBlock(EntityChangeBlockEvent event) {
|
public void onEntityChangeBlock(EntityChangeBlockEvent event) {
|
||||||
Block block = event.getBlock();
|
Block block = event.getBlock();
|
||||||
|
|
||||||
if (!BlockUtils.shouldBeWatched(block.getState())) {
|
// When the event is fired for the falling block that changes back to a normal block
|
||||||
|
// event.getBlock().getType() returns AIR
|
||||||
|
if (!BlockUtils.shouldBeWatched(block.getState()) && block.getType() != Material.AIR) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user