Time-of-day fix for Fabric (all versions) and Forge (1.13-1.16)

This commit is contained in:
Mike Primm 2021-12-29 19:33:37 -06:00
parent c48ed688b2
commit 7225edc1d6
9 changed files with 9 additions and 9 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}