mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Chorus plant experience reward is now 1 instead of 2.
Sneaking is required if the player has an item in the off hand and they're not in a vehicle.
This commit is contained in:
parent
08db154791
commit
eaa1a8edca
@ -528,6 +528,10 @@ public class PlayerListener implements Listener {
|
|||||||
|
|
||||||
switch (event.getAction()) {
|
switch (event.getAction()) {
|
||||||
case RIGHT_CLICK_BLOCK:
|
case RIGHT_CLICK_BLOCK:
|
||||||
|
if(player.getInventory().getItemInOffHand().getType() != Material.AIR && !player.isInsideVehicle() && !player.isSneaking()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
Block block = event.getClickedBlock();
|
Block block = event.getClickedBlock();
|
||||||
BlockState blockState = block.getState();
|
BlockState blockState = block.getState();
|
||||||
|
|
||||||
@ -569,6 +573,10 @@ public class PlayerListener implements Listener {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case RIGHT_CLICK_AIR:
|
case RIGHT_CLICK_AIR:
|
||||||
|
if(player.getInventory().getItemInOffHand().getType() != Material.AIR && !player.isInsideVehicle() && !player.isSneaking()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
/* ACTIVATION CHECKS */
|
/* ACTIVATION CHECKS */
|
||||||
if (Config.getInstance().getAbilitiesEnabled()) {
|
if (Config.getInstance().getAbilitiesEnabled()) {
|
||||||
mcMMOPlayer.processAbilityActivation(SkillType.AXES);
|
mcMMOPlayer.processAbilityActivation(SkillType.AXES);
|
||||||
|
@ -156,7 +156,7 @@ Experience:
|
|||||||
Cactus: 30
|
Cactus: 30
|
||||||
Carrot: 50
|
Carrot: 50
|
||||||
Chorus_Flower: 25
|
Chorus_Flower: 25
|
||||||
Chorus_Plant: 2
|
Chorus_Plant: 1
|
||||||
Cocoa: 30
|
Cocoa: 30
|
||||||
Crops: 50
|
Crops: 50
|
||||||
Dead_Bush: 30
|
Dead_Bush: 30
|
||||||
|
Loading…
Reference in New Issue
Block a user