9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-29 11:59:17 +00:00

Merge branch 'master' into dev/new-command

This commit is contained in:
MC_XiaoHei
2025-09-12 11:42:34 +08:00
committed by GitHub
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);