mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Fix #2634 no such method error
This commit is contained in:
parent
4d1d3a165c
commit
ccc7b0ec65
@ -1943,13 +1943,21 @@ import java.util.regex.Pattern;
|
|||||||
Material type = event.getMaterial();
|
Material type = event.getMaterial();
|
||||||
|
|
||||||
// in the following, lb needs to have the material of the item in hand i.e. type
|
// in the following, lb needs to have the material of the item in hand i.e. type
|
||||||
if (type == Material.REDSTONE || type == Material.STRING
|
switch (type) {
|
||||||
|| type == Material.PUMPKIN_SEEDS || type == Material.MELON_SEEDS
|
case REDSTONE:
|
||||||
|| type == Material.COCOA_BEANS || type == Material.WHEAT_SEEDS
|
case STRING:
|
||||||
|| type == Material.BEETROOT_SEEDS || type == Material.SWEET_BERRIES || type
|
case PUMPKIN_SEEDS:
|
||||||
.isBlock()) {
|
case MELON_SEEDS:
|
||||||
//eventType = PlayerBlockEventType.PLACE_BLOCK;
|
case COCOA_BEANS:
|
||||||
|
case WHEAT_SEEDS:
|
||||||
|
case BEETROOT_SEEDS:
|
||||||
|
case SWEET_BERRIES:
|
||||||
return;
|
return;
|
||||||
|
default:
|
||||||
|
//eventType = PlayerBlockEventType.PLACE_BLOCK;
|
||||||
|
if (type.isBlock()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (PaperLib.isPaper()) {
|
if (PaperLib.isPaper()) {
|
||||||
if (MaterialTags.SPAWN_EGGS.isTagged(type) || Material.EGG.equals(type)) {
|
if (MaterialTags.SPAWN_EGGS.isTagged(type) || Material.EGG.equals(type)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user