mirror of
https://github.com/DieReicheErethons/Brewery.git
synced 2024-11-25 12:05:16 +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
|
||||
public void touch() {
|
||||
lastUpdate = (int) ((float) (System.currentTimeMillis() - installTime) / 3600000F);
|
||||
lastUpdate = (int) ((double) (System.currentTimeMillis() - installTime) / 3600000D);
|
||||
}
|
||||
|
||||
public int getDistillRuns() {
|
||||
|
@ -67,8 +67,8 @@ public class P extends JavaPlugin {
|
||||
|
||||
// Version check
|
||||
String v = Bukkit.getBukkitVersion();
|
||||
useUUID = !v.matches(".*1\\.[0-6].*") && !v.matches(".*1\\.7\\.[0-5].*");
|
||||
use1_9 = !v.matches(".*1\\.[0-8].*");
|
||||
useUUID = !v.matches("(^|.*[^\\.\\d])1\\.[0-6]([^\\d].*|$)") && !v.matches("(^|.*[^\\.\\d])1\\.7\\.[0-5]([^\\d].*|$)");
|
||||
use1_9 = !v.matches("(^|.*[^\\.\\d])1\\.[0-8]([^\\d].*|$)");
|
||||
|
||||
// load the Config
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user