Skip to content
Permalink
Browse files

Unfix WORLDGUARD-3360.

There's a reason this wasn't done before. This is fundamentally broken.

(cherry picked from commit ab7751e)
  • Loading branch information...
wizjany committed Jul 3, 2019
1 parent 76c3405 commit e4da4796032bbaa216f358269e9c70754e3be035
@@ -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) {

0 comments on commit e4da479

Please sign in to comment.
You can’t perform that action at this time.