mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-27 12:45:59 +01:00
Time-of-day fix for Fabric (all versions) and Forge (1.13-1.16)
This commit is contained in:
parent
c48ed688b2
commit
7225edc1d6
@ -100,7 +100,7 @@ public class FabricWorld extends DynmapWorld {
|
||||
@Override
|
||||
public long getTime() {
|
||||
if (world != null)
|
||||
return world.getWorld().getTime();
|
||||
return world.getWorld().getTimeOfDay();
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ public class FabricWorld extends DynmapWorld {
|
||||
@Override
|
||||
public long getTime() {
|
||||
if (world != null)
|
||||
return world.getWorld().getTime();
|
||||
return world.getWorld().getTimeOfDay();
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ public class FabricWorld extends DynmapWorld {
|
||||
@Override
|
||||
public long getTime() {
|
||||
if (world != null)
|
||||
return world.getTime();
|
||||
return world.getTimeOfDay();
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ public class FabricWorld extends DynmapWorld {
|
||||
@Override
|
||||
public long getTime() {
|
||||
if (world != null)
|
||||
return world.getTime();
|
||||
return world.getTimeOfDay();
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ public class FabricWorld extends DynmapWorld {
|
||||
@Override
|
||||
public long getTime() {
|
||||
if (world != null)
|
||||
return world.getTime();
|
||||
return world.getTimeOfDay();
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ public class ForgeWorld extends DynmapWorld
|
||||
public long getTime()
|
||||
{
|
||||
if(world != null)
|
||||
return world.getWorld().getGameTime();
|
||||
return world.getWorld().getDayTime();
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
|
@ -129,7 +129,7 @@ public class ForgeWorld extends DynmapWorld
|
||||
public long getTime()
|
||||
{
|
||||
if(world != null)
|
||||
return world.getWorld().getGameTime();
|
||||
return world.getWorld().getDayTime();
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
|
@ -129,7 +129,7 @@ public class ForgeWorld extends DynmapWorld
|
||||
public long getTime()
|
||||
{
|
||||
if(world != null)
|
||||
return world.getWorld().getGameTime();
|
||||
return world.getWorld().getDayTime();
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ public class ForgeWorld extends DynmapWorld
|
||||
public long getTime()
|
||||
{
|
||||
if(world != null)
|
||||
return world.getWorld().getGameTime();
|
||||
return world.getWorld().getDayTime();
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user