Unfix WORLDGUARD-3360.

There's a reason this wasn't done before. This is fundamentally broken.
This commit is contained in:
wizjany 2019-07-02 23:06:34 -04:00
parent a9cd23c6ef
commit ab7751e046

View File

@ -46,7 +46,6 @@
import org.bukkit.entity.HumanEntity;
import org.bukkit.entity.Item;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.EventHandler;
import org.bukkit.event.block.BlockDispenseArmorEvent;
import org.bukkit.event.block.BlockDispenseEvent;
@ -129,9 +128,6 @@ public void onPlaceBlock(final PlaceBlockEvent event) {
@EventHandler(ignoreCancelled = true)
public void onUseBlock(final UseBlockEvent event) {
if (event.getResult() == Event.Result.ALLOW) {
return;
}
Player player = event.getCause().getFirstPlayer();
if (player == null) {