mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-09-02 10:00:13 +02:00
Spigot crops in 1.11- are dumb
This commit is contained in:
parent
807cd45b60
commit
a1dc9fa062
|
@ -596,11 +596,13 @@ public class Block implements Listener {
|
|||
e.printStackTrace();
|
||||
}
|
||||
} else {
|
||||
if (block.getState().getData() instanceof Crops) {
|
||||
if (block.getState().getData() instanceof Crops
|
||||
|| block.getType().name().equals("BEETROOT_BLOCK")
|
||||
|| block.getType().name().equals("CARROT")
|
||||
|| block.getType().name().equals("POTATO")
|
||||
|| block.getType().name().equals("CROPS")) {
|
||||
try {
|
||||
block.getClass().getMethod("setData", byte.class).invoke(block,
|
||||
(byte) (block.getData() + 1));
|
||||
block.getState().update();
|
||||
block.getClass().getMethod("setData", byte.class).invoke(block, (byte) (block.getData() + 1));
|
||||
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException
|
||||
| NoSuchMethodException | SecurityException e) {
|
||||
e.printStackTrace();
|
||||
|
|
Loading…
Reference in New Issue
Block a user