yeet most of tick
This commit is contained in:
1 parent
2c01a98216
commit
1a7e8b6875
30 files changed
+156
-1420
No files matched your search
@@ -1369,7 +1369,7 @@ public class CarpetEventServer
|
||||
|
||||
public void tick()
|
||||
{
|
||||
if (Carpet.isTickProcessingPaused(scriptServer.server))
|
||||
if (Vanilla.isTickProcessingPaused(scriptServer.server))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -131,11 +131,6 @@ public class Carpet
|
||||
return null;
|
||||
}
|
||||
|
||||
public static boolean isTickProcessingPaused(MinecraftServer server)
|
||||
{
|
||||
return !((MinecraftServerInterface)server).getTickRateManager().runsNormally();
|
||||
}
|
||||
|
||||
public static void handleExtensionsAPI(CarpetExpression expression)
|
||||
{
|
||||
CarpetServer.extensions.forEach(e -> e.scarpetApi(expression));
|
||||
|
||||
@@ -367,4 +367,9 @@ public class Vanilla
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isTickProcessingPaused(MinecraftServer server)
|
||||
{
|
||||
return !((MinecraftServerInterface)server).getTickRateManager().runsNormally();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user