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:
Dor 2016-03-12 05:31:11 +02:00
parent 08db154791
commit eaa1a8edca
2 changed files with 9 additions and 1 deletions

View File

@ -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);

View File

@ -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