mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-19 23:09:34 +00:00
feat: add more features declaration (#732)
This commit is contained in:
@@ -6,4 +6,6 @@ public class Features {
|
|||||||
public static final String FAKEPLAYER = "fakeplayer";
|
public static final String FAKEPLAYER = "fakeplayer";
|
||||||
public static final String PHOTOGRAPHER = "photographer";
|
public static final String PHOTOGRAPHER = "photographer";
|
||||||
public static final String RECORDER = "recorder";
|
public static final String RECORDER = "recorder";
|
||||||
|
public static final String BYTEBUF = "bytebuf";
|
||||||
|
public static final String UPDATE_SUPPRESSION_EVENT = "update_suppression_event";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,9 @@ public class ServerFeatureManager implements FeatureManager {
|
|||||||
private ServerFeatureManager() {
|
private ServerFeatureManager() {
|
||||||
availableFeatures.addAll(Set.of(
|
availableFeatures.addAll(Set.of(
|
||||||
FAKEPLAYER,
|
FAKEPLAYER,
|
||||||
PHOTOGRAPHER
|
PHOTOGRAPHER,
|
||||||
|
BYTEBUF,
|
||||||
|
UPDATE_SUPPRESSION_EVENT
|
||||||
));
|
));
|
||||||
if (Boolean.getBoolean("leavesclip.enable.mixin")) {
|
if (Boolean.getBoolean("leavesclip.enable.mixin")) {
|
||||||
availableFeatures.add(MIXIN);
|
availableFeatures.add(MIXIN);
|
||||||
|
|||||||
Reference in New Issue
Block a user