Update to Minecraft 1.15.1

This commit is contained in:
md_5
2019-12-18 08:00:00 +11:00
parent e2790ae2ea
commit 30a1b6911f
9 changed files with 40 additions and 52 deletions

View File

@@ -298,14 +298,14 @@
@@ -306,11 +510,11 @@
}
public boolean J() {
public boolean isDay() {
- return this.worldProvider.getDimensionManager() == DimensionManager.OVERWORLD && this.c < 4;
+ return this.worldProvider.getDimensionManager().getType() == DimensionManager.OVERWORLD && this.c < 4; // CraftBukkit
}
public boolean K() {
- return this.worldProvider.getDimensionManager() == DimensionManager.OVERWORLD && !this.J();
+ return this.worldProvider.getDimensionManager().getType() == DimensionManager.OVERWORLD && !this.J(); // CraftBukkit
public boolean isNight() {
- return this.worldProvider.getDimensionManager() == DimensionManager.OVERWORLD && !this.isDay();
+ return this.worldProvider.getDimensionManager().getType() == DimensionManager.OVERWORLD && !this.isDay(); // CraftBukkit
}
@Override