Make our StructureGrowEvent only care about player-planted trees.

This commit is contained in:
GJ 2013-01-16 16:47:04 -05:00
parent 734d691e00
commit ff186d5d9d

View File

@ -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,12 +28,12 @@ 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());
} }
} }
}
@EventHandler @EventHandler
public void onWorldInit(WorldInitEvent event) { public void onWorldInit(WorldInitEvent event) {