refactor entity portal speed fix patch
Shiroha CI / build (push) Canceled after 0s
Shiroha CI / Event File (push) Canceled after 0s

This commit is contained in:
2026-08-15 16:14:13 +08:00
parent 3cb4cc0ab8
commit 84f62ca34b
19 changed files with 145 additions and 108 deletions
@@ -0,0 +1,17 @@
package io.nanachiyo0721.shiroha.config.modules.fixes;
import io.nanachiyo0721.shiroha.config.IConfigModule;
import io.nanachiyo0721.shiroha.config.flags.ConfigClassInfo;
import io.nanachiyo0721.shiroha.config.flags.ConfigInfo;
import io.nanachiyo0721.shiroha.enums.EnumConfigCategory;
@ConfigClassInfo(category = EnumConfigCategory.FIXES, name = "teleport")
public class TeleportConfig implements IConfigModule {
@ConfigInfo(name = "enable_delay_compensation", comments = """
Whether to enable delay compensation after teleportation,
as Folia's teleportation mechanism causes teleportation to be delayed by at least 1 tick""")
public static boolean enableDelayCompensation = true;
@ConfigInfo(name = "max_delay_compensation_ticks", comments = "Maximum number of ticks to compensate for delay")
public static int maxDelayCompensationTicks = 1;
}
@@ -0,0 +1,7 @@
package io.nanachiyo0721.shiroha.enums;
public enum EnumTeleportStage {
NORMAL,
STOP_TICKING,
NEED_SYNC
}