20w06a -3 mapping
This commit is contained in:
1 parent
ed4e35d017
commit
4780514cb2
2 files changed
+6
-6
No files matched your search
+2
-2
@@ -5,8 +5,8 @@ org.gradle.jvmargs=-Xmx1G
|
|||||||
# check these on https://fabricmc.net/use
|
# check these on https://fabricmc.net/use
|
||||||
# or better: https://modmuss50.me/fabric.html
|
# or better: https://modmuss50.me/fabric.html
|
||||||
minecraft_version=20w06a
|
minecraft_version=20w06a
|
||||||
yarn_mappings=20w06a+build.1
|
yarn_mappings=20w06a+build.3
|
||||||
loader_version=0.7.6+build.181
|
loader_version=0.7.8+build.184
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.3.9+v200206
|
mod_version = 1.3.9+v200206
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ package carpet.mixins;
|
|||||||
|
|
||||||
import carpet.helpers.TickSpeed;
|
import carpet.helpers.TickSpeed;
|
||||||
import carpet.utils.CarpetProfiler;
|
import carpet.utils.CarpetProfiler;
|
||||||
import net.minecraft.class_4758;
|
|
||||||
import net.minecraft.server.MinecraftServer;
|
import net.minecraft.server.MinecraftServer;
|
||||||
|
import net.minecraft.util.TickDurationMonitor;
|
||||||
import net.minecraft.util.Util;
|
import net.minecraft.util.Util;
|
||||||
import net.minecraft.util.profiler.Profiler;
|
import net.minecraft.util.profiler.Profiler;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
@@ -44,7 +44,7 @@ public abstract class MinecraftServer_tickspeedMixin
|
|||||||
|
|
||||||
@Shadow private volatile boolean loading;
|
@Shadow private volatile boolean loading;
|
||||||
|
|
||||||
@Shadow protected abstract void method_24487(class_4758 arg);
|
@Shadow protected abstract void startMonitor(TickDurationMonitor monitor);
|
||||||
|
|
||||||
CarpetProfiler.ProfilerToken currentSection;
|
CarpetProfiler.ProfilerToken currentSection;
|
||||||
|
|
||||||
@@ -108,8 +108,8 @@ public abstract class MinecraftServer_tickspeedMixin
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.timeReference += msThisTick;//50L;
|
this.timeReference += msThisTick;//50L;
|
||||||
class_4758 lv = class_4758.method_24341("Server");
|
TickDurationMonitor tickDurationMonitor = TickDurationMonitor.create("Server");
|
||||||
this.method_24487(lv);
|
this.startMonitor(tickDurationMonitor);
|
||||||
this.profiler.startTick();
|
this.profiler.startTick();
|
||||||
this.profiler.push("tick");
|
this.profiler.push("tick");
|
||||||
this.tick(TickSpeed.time_warp_start_time != 0 ? ()->true : this::shouldKeepTicking);
|
this.tick(TickSpeed.time_warp_start_time != 0 ? ()->true : this::shouldKeepTicking);
|
||||||
|
|||||||
Reference in new issue
Block a user