Fix NoSuchFieldError (GRASS_BLOCK) on <1.13
https://pastebin.com/GeskSHNh To fix this issue: https://github.com/ProSavage/SavageFactions/issues/97
This commit is contained in:
parent
707b7796c6
commit
3b7cdbdae3
@ -951,7 +951,7 @@ public class FactionsPlayerListener implements Listener {
|
|||||||
public void onPlayerBoneMeal(PlayerInteractEvent event) {
|
public void onPlayerBoneMeal(PlayerInteractEvent event) {
|
||||||
Block block = event.getClickedBlock();
|
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) {
|
&& event.hasItem() && event.getItem().getType() == Material.BONE_MEAL) {
|
||||||
if (!FactionsBlockListener.playerCanBuildDestroyBlock(event.getPlayer(), block.getLocation(), PermissableAction.BUILD.name(), true)) {
|
if (!FactionsBlockListener.playerCanBuildDestroyBlock(event.getPlayer(), block.getLocation(), PermissableAction.BUILD.name(), true)) {
|
||||||
FPlayer me = FPlayers.getInstance().getById(event.getPlayer().getUniqueId().toString());
|
FPlayer me = FPlayers.getInstance().getById(event.getPlayer().getUniqueId().toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user