Fix lectern permissions for spigot servers

- Fixes an issue with players with correct trust level not able to put a book in a lectern when the server is running Spigot
- This "fix" isn't needed for Paper...

Closes #613
This commit is contained in:
Shane Bee 2019-09-08 11:50:28 -07:00 committed by RoboMWM
parent 6f35aabf2e
commit cc03fdcba8

View File

@ -243,7 +243,7 @@ public class BlockEventHandler implements Listener
// Allow players with container trust to place books in lecterns
PlayerData playerData = this.dataStore.getPlayerData(player.getUniqueId());
Claim claim = this.dataStore.getClaimAt(block.getLocation(), true, playerData.lastClaim);
if (block.getType() == Material.LECTERN && placeEvent.getBlockReplacedState() instanceof Lectern)
if (block.getType() == Material.LECTERN && placeEvent.getBlockReplacedState().getType() == Material.LECTERN)
{
if (claim != null)
{