mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Make our StructureGrowEvent only care about player-planted trees.
This commit is contained in:
parent
734d691e00
commit
ff186d5d9d
@ -2,7 +2,6 @@ package com.gmail.nossr50.listeners;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.bukkit.TreeType;
|
import org.bukkit.TreeType;
|
||||||
import org.bukkit.block.BlockState;
|
import org.bukkit.block.BlockState;
|
||||||
@ -29,10 +28,10 @@ public class WorldListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
List<BlockState> blocks = event.getBlocks();
|
if (mcMMO.placeStore.isTrue(event.getLocation().getBlock())) {
|
||||||
|
for (BlockState block : event.getBlocks()) {
|
||||||
for (BlockState block : blocks) {
|
mcMMO.placeStore.setFalse(block.getBlock());
|
||||||
mcMMO.placeStore.setFalse(block.getBlock());
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user