Another small fix for water-related issues.

This commit is contained in:
H31IX committed 2012-06-08 18:58:32 -04:00
1 parent 8983ae24bb
commit 13d909e804
2 files changed
+3 -3

No files matched your search

@@ -428,7 +428,7 @@ public class Backend
if(y1 == y2 && !isMovingExempt(player) && player.getVehicle() == null && player.getFallDistance() == 0 && !Utilities.isOnLilyPad(player))
{
String name = player.getName();
if(Utilities.cantStandAt(block) && !Utilities.isOnLilyPad(player) && Utilities.cantStandAt(player.getLocation().getBlock()) && !Utilities.isSubmersed(player))
if(Utilities.cantStandAt(block) && !Utilities.isOnLilyPad(player) && Utilities.cantStandAt(player.getLocation().getBlock()) && player.getLocation().getBlock().getType() != Material.WATER && player.getLocation().getBlock().getType() != Material.STATIONARY_WATER)
{
int violation = 1;
if(!flightViolation.containsKey(name))
@@ -480,7 +480,7 @@ public class Backend
public boolean checkAscension(Player player, double y1, double y2)
{
if(!isMovingExempt(player) && !Utilities.isSubmersed(player) && !Utilities.isOnLadder(player))
if(!isMovingExempt(player) && player.getLocation().getBlock().getType() != Material.WATER && player.getLocation().getBlock().getType() != Material.STATIONARY_WATER && !Utilities.isOnLadder(player))
{
String name = player.getName();
if(y1 < y2)
@@ -213,7 +213,7 @@ public class Metrics {
private void postPlugin(boolean isPing) throws IOException {
// The plugin's description file containg all of the plugin data such as name, version, author, etc
PluginDescriptionFile description = plugin.getDescription();
// Construct the post data
String data = encode("guid") + '=' + encode(guid)
+ encodeDataPair("version", description.getVersion())