Fix supplying block isntead of material.

This commit is contained in:
ulumulu1510 2017-07-17 17:31:23 +02:00
parent a2c3432864
commit a1ec8ce439
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
// -------------------------------------------- //