- Remove level debug message
- Try to prevent null pointer - Allow door right click - Prevent destroying of soil
This commit is contained in:
@@ -122,7 +122,6 @@ public final class Level {
|
||||
}
|
||||
level += (double) (maxSmashLevel / 4);
|
||||
level += (double) maxFFLevel;
|
||||
System.out.println(level);
|
||||
anuraLevel.put(P, (int) level);
|
||||
smashLevel.put(P, (int) sLevel);
|
||||
ffLevel.put(P, (int) fLevel);
|
||||
|
||||
@@ -43,7 +43,7 @@ public class PlayerCommands implements CommandExecutor {
|
||||
Core.statusMsg(sender, "only_player_cmd", false);
|
||||
return true;
|
||||
}
|
||||
if (Core.getMainClass().getFeatures().featureEnabled.get(P).get(Features.Feature.BOAT)) {
|
||||
if (Core.getMainClass().getFeatures().hasFeature(P, Features.Feature.BOAT) && Core.getMainClass().getFeatures().featureEnabled.get(P).get(Features.Feature.BOAT)) {
|
||||
Core.getMainClass().getFeatures().disableFeature(P, Features.Feature.BOAT);
|
||||
} else {
|
||||
Core.getMainClass().getFeatures().enableFeature(P, Features.Feature.BOAT);
|
||||
|
||||
@@ -153,10 +153,16 @@ public class PlayerInteract implements Listener {
|
||||
cancelled = false;
|
||||
} else if (event.getClickedBlock().getType().equals(Material.WOOD_BUTTON)) {
|
||||
cancelled = false;
|
||||
} else if (event.getClickedBlock().getType().equals(Material.WOODEN_DOOR)) {
|
||||
cancelled = false;
|
||||
}
|
||||
} else if (event.getAction().equals(Action.PHYSICAL)) {
|
||||
cancelled = false;
|
||||
if (event.getClickedBlock().getType() != Material.SOIL) {
|
||||
cancelled = false;
|
||||
}
|
||||
} else if (event.getAction().equals(Action.RIGHT_CLICK_AIR)) {
|
||||
}
|
||||
if (event.getAction().equals(Action.RIGHT_CLICK_AIR) || event.getAction().equals(Action.RIGHT_CLICK_BLOCK)) {
|
||||
if (event.getPlayer().getItemInHand().getType().equals(Material.BOW)) {
|
||||
cancelled = false;
|
||||
} else if (event.getPlayer().getItemInHand().getType().equals(Material.EXP_BOTTLE)) {
|
||||
|
||||
Reference in New Issue
Block a user