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:
parent
6f35aabf2e
commit
cc03fdcba8
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user