Fix supplying block isntead of material.

This commit is contained in:
ulumulu1510 committed 2017-07-17 17:31:23 +02:00
1 parent a2c3432864
commit a1ec8ce439
1 file changed
+1 -1
@@ -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);
}
// -------------------------------------------- //