mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 08:39:49 +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.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.bukkit.TreeType;
|
||||
import org.bukkit.block.BlockState;
|
||||
@ -29,12 +28,12 @@ public class WorldListener implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
List<BlockState> blocks = event.getBlocks();
|
||||
|
||||
for (BlockState block : blocks) {
|
||||
if (mcMMO.placeStore.isTrue(event.getLocation().getBlock())) {
|
||||
for (BlockState block : event.getBlocks()) {
|
||||
mcMMO.placeStore.setFalse(block.getBlock());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onWorldInit(WorldInitEvent event) {
|
||||
|
Loading…
Reference in New Issue
Block a user