mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-23 23:55:33 +02:00
mcMMO will no longer use the DamageModifier API (potentially fix immortal player bug)
This commit is contained in:
@@ -35,8 +35,7 @@ public class DelayedCropReplant extends BukkitRunnable {
|
||||
public DelayedCropReplant(BlockBreakEvent blockBreakEvent, BlockState cropState, int desiredCropAge, boolean wasImmaturePlant) {
|
||||
BlockData cropData = cropState.getBlockData();
|
||||
|
||||
if(cropData instanceof Directional) {
|
||||
Directional cropDir = (Directional) cropData;
|
||||
if(cropData instanceof Directional cropDir) {
|
||||
cropFace = cropDir.getFacing();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user