refactor entity portal speed fix patch
This commit is contained in:
+17
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user