mirror of
https://github.com/Minestom/Minestom.git
synced 2024-10-02 08:27:58 +02:00
Fix block destroy listener
This commit is contained in:
parent
e3942e68d3
commit
1ba1a336b1
@ -162,7 +162,7 @@ public class InstanceContainer extends Instance {
|
|||||||
if (previousHandler != null) {
|
if (previousHandler != null) {
|
||||||
// Previous destroy
|
// Previous destroy
|
||||||
final var destroy = player != null ?
|
final var destroy = player != null ?
|
||||||
new BlockHandler.PlayerDestroy(block, this, blockPosition, player) :
|
new BlockHandler.PlayerDestroy(previousBlock, this, blockPosition, player) :
|
||||||
BlockHandler.Destroy.from(previousBlock, this, blockPosition);
|
BlockHandler.Destroy.from(previousBlock, this, blockPosition);
|
||||||
previousHandler.onDestroy(destroy);
|
previousHandler.onDestroy(destroy);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user