Deny pumpkin carving in untrusted claims (#1473)

Fixes #1352
This commit is contained in:
drbot7 2021-07-17 10:58:21 -05:00 committed by GitHub
parent d930e45440
commit 16036bdc19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1749,7 +1749,8 @@ class PlayerEventHandler implements Listener
clickedBlockType == Material.LOOM ||
clickedBlockType == Material.RESPAWN_ANCHOR ||
clickedBlockType == Material.CAVE_VINES ||
clickedBlockType == Material.CAVE_VINES_PLANT
clickedBlockType == Material.CAVE_VINES_PLANT ||
clickedBlockType == Material.PUMPKIN
)))
{
if (playerData == null) playerData = this.dataStore.getPlayerData(player.getUniqueId());