mirror of
https://github.com/DieReicheErethons/Brewery.git
synced 2024-11-29 12:45:14 +01:00
Prepare the feature check for MC1.10
This commit is contained in:
parent
41660c9b4f
commit
169045839e
@ -280,7 +280,7 @@ public class Brew {
|
|||||||
|
|
||||||
// Do some regular updates
|
// Do some regular updates
|
||||||
public void touch() {
|
public void touch() {
|
||||||
lastUpdate = (int) ((float) (System.currentTimeMillis() - installTime) / 3600000F);
|
lastUpdate = (int) ((double) (System.currentTimeMillis() - installTime) / 3600000D);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getDistillRuns() {
|
public int getDistillRuns() {
|
||||||
|
@ -67,8 +67,8 @@ public class P extends JavaPlugin {
|
|||||||
|
|
||||||
// Version check
|
// Version check
|
||||||
String v = Bukkit.getBukkitVersion();
|
String v = Bukkit.getBukkitVersion();
|
||||||
useUUID = !v.matches(".*1\\.[0-6].*") && !v.matches(".*1\\.7\\.[0-5].*");
|
useUUID = !v.matches("(^|.*[^\\.\\d])1\\.[0-6]([^\\d].*|$)") && !v.matches("(^|.*[^\\.\\d])1\\.7\\.[0-5]([^\\d].*|$)");
|
||||||
use1_9 = !v.matches(".*1\\.[0-8].*");
|
use1_9 = !v.matches("(^|.*[^\\.\\d])1\\.[0-8]([^\\d].*|$)");
|
||||||
|
|
||||||
// load the Config
|
// load the Config
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user