From a1ec8ce439dd6e18b4b8d3876967a590903d0926 Mon Sep 17 00:00:00 2001 From: ulumulu1510 Date: Mon, 17 Jul 2017 17:31:23 +0200 Subject: [PATCH] Fix supplying block isntead of material. --- src/com/massivecraft/factions/engine/EnginePermBuild.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/engine/EnginePermBuild.java b/src/com/massivecraft/factions/engine/EnginePermBuild.java index 344fa170..973763a4 100644 --- a/src/com/massivecraft/factions/engine/EnginePermBuild.java +++ b/src/com/massivecraft/factions/engine/EnginePermBuild.java @@ -105,7 +105,7 @@ public class EnginePermBuild extends Engine public static Boolean useBlock(Player player, Block block, boolean verboose, Cancellable cancellable) { - return protect(ProtectCase.USE_BLOCK, verboose, player, PS.valueOf(block), block, cancellable); + return protect(ProtectCase.USE_BLOCK, verboose, player, PS.valueOf(block), block.getType(), cancellable); } // -------------------------------------------- //