mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 06:38:56 +00:00
Fixed too much drunk-pushing in 1.9
This commit is contained in:
@@ -229,8 +229,13 @@ public class BPlayer {
|
|||||||
if (time == 0) {
|
if (time == 0) {
|
||||||
// push him only to the side? or any direction
|
// push him only to the side? or any direction
|
||||||
// like now
|
// like now
|
||||||
push.setX(Math.random() - 0.5);
|
if (P.use1_9) { // Pushing is way stronger in 1.9
|
||||||
push.setZ(Math.random() - 0.5);
|
push.setX((Math.random() - 0.5) / 2.0);
|
||||||
|
push.setZ((Math.random() - 0.5) / 2.0);
|
||||||
|
} else {
|
||||||
|
push.setX(Math.random() - 0.5);
|
||||||
|
push.setZ(Math.random() - 0.5);
|
||||||
|
}
|
||||||
player.setVelocity(push);
|
player.setVelocity(push);
|
||||||
} else if (time < 0 && time > -10) {
|
} else if (time < 0 && time > -10) {
|
||||||
// push him some more in the same direction
|
// push him some more in the same direction
|
||||||
@@ -574,4 +579,4 @@ public class BPlayer {
|
|||||||
return -getQuality() + 11;
|
return -getQuality() + 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ public class Barrel implements InventoryHolder {
|
|||||||
}
|
}
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
P.p.errorLog("Failed to Check WorldGuard for Barrel Open Permissions!");
|
P.p.errorLog("Failed to Check WorldGuard for Barrel Open Permissions!");
|
||||||
P.p.errorLog("Brewery was tested with version 5.8 to 6.0 of WorldGuard!");
|
P.p.errorLog("Brewery was tested with version 5.8 to 6.1 of WorldGuard!");
|
||||||
P.p.errorLog("Disable the WorldGuard support in the config and do /brew reload");
|
P.p.errorLog("Disable the WorldGuard support in the config and do /brew reload");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
P.p.msg(player, "&cError opening Barrel, please report to an Admin!");
|
P.p.msg(player, "&cError opening Barrel, please report to an Admin!");
|
||||||
@@ -146,7 +146,7 @@ public class Barrel implements InventoryHolder {
|
|||||||
}
|
}
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
P.p.errorLog("Failed to Check GriefPrevention for Barrel Open Permissions!");
|
P.p.errorLog("Failed to Check GriefPrevention for Barrel Open Permissions!");
|
||||||
P.p.errorLog("Brewery only works with the latest release of GriefPrevention (7.8)");
|
P.p.errorLog("Brewery was tested with GriefPrevention 14.5.1");
|
||||||
P.p.errorLog("Disable the GriefPrevention support in the config and do /brew reload");
|
P.p.errorLog("Disable the GriefPrevention support in the config and do /brew reload");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
P.p.msg(player, "&cError opening Barrel, please report to an Admin!");
|
P.p.msg(player, "&cError opening Barrel, please report to an Admin!");
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ public class P extends JavaPlugin {
|
|||||||
useUUID = !v.matches(".*1\\.[0-6].*") && !v.matches(".*1\\.7\\.[0-5].*");
|
useUUID = !v.matches(".*1\\.[0-6].*") && !v.matches(".*1\\.7\\.[0-5].*");
|
||||||
use1_9 = !v.matches(".*1\\.[0-8].*");
|
use1_9 = !v.matches(".*1\\.[0-8].*");
|
||||||
if (use1_9) {
|
if (use1_9) {
|
||||||
log("&cExperimental support for Bukkit 1.9 enabled.");
|
log("&eExperimental support for Bukkit 1.9 enabled.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// load the Config
|
// load the Config
|
||||||
|
|||||||
Reference in New Issue
Block a user