9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-19 14:59:32 +00:00

feat: add more features declaration (#732)

This commit is contained in:
MC_XiaoHei
2025-09-12 11:41:14 +08:00
committed by GitHub
parent 074f57b54d
commit decc9752cb
2 changed files with 5 additions and 1 deletions

View File

@@ -6,4 +6,6 @@ public class Features {
public static final String FAKEPLAYER = "fakeplayer";
public static final String PHOTOGRAPHER = "photographer";
public static final String RECORDER = "recorder";
public static final String BYTEBUF = "bytebuf";
public static final String UPDATE_SUPPRESSION_EVENT = "update_suppression_event";
}

View File

@@ -13,7 +13,9 @@ public class ServerFeatureManager implements FeatureManager {
private ServerFeatureManager() {
availableFeatures.addAll(Set.of(
FAKEPLAYER,
PHOTOGRAPHER
PHOTOGRAPHER,
BYTEBUF,
UPDATE_SUPPRESSION_EVENT
));
if (Boolean.getBoolean("leavesclip.enable.mixin")) {
availableFeatures.add(MIXIN);