Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

Commit

Permalink
Fix NoSuchFieldError (GRASS_BLOCK) on <1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Drc-DEV authored Feb 17, 2019
1 parent 707b779 commit 3b7cdbd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ public void onPlayerInteract(PlayerInteractEvent event) {
public void onPlayerBoneMeal(PlayerInteractEvent event) {
Block block = event.getClickedBlock();

if (event.getAction() == Action.RIGHT_CLICK_BLOCK && block.getType() == Material.GRASS_BLOCK
if (event.getAction() == Action.RIGHT_CLICK_BLOCK && block.getType() == MultiversionMaterials.GRASS_BLOCK.parseMaterial()
&& event.hasItem() && event.getItem().getType() == Material.BONE_MEAL) {
if (!FactionsBlockListener.playerCanBuildDestroyBlock(event.getPlayer(), block.getLocation(), PermissableAction.BUILD.name(), true)) {
FPlayer me = FPlayers.getInstance().getById(event.getPlayer().getUniqueId().toString());
Expand Down

0 comments on commit 3b7cdbd

Please sign in to comment.