mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-25 09:59:20 +00:00
添加指定特定方块作为bukkit material的选项
This commit is contained in:
@@ -125,6 +125,7 @@ public class Config {
|
||||
protected int block$predict_breaking_interval;
|
||||
protected double block$extended_interaction_range;
|
||||
protected boolean block$chunk_relighter;
|
||||
protected Key block$deceive_bukkit_material;
|
||||
protected int block$serverside_blocks = -1;
|
||||
|
||||
protected boolean recipe$enable;
|
||||
@@ -436,6 +437,7 @@ public class Config {
|
||||
block$predict_breaking_interval = Math.max(config.getInt("block.predict-breaking.interval", 10), 1);
|
||||
block$extended_interaction_range = Math.max(config.getDouble("block.predict-breaking.extended-interaction-range", 0.5), 0.0);
|
||||
block$chunk_relighter = config.getBoolean("block.chunk-relighter", true);
|
||||
block$deceive_bukkit_material = Key.of(config.getString("block.deceive-bukkit-material", "stone"));
|
||||
if (firstTime) {
|
||||
block$serverside_blocks = Math.min(config.getInt("block.serverside-blocks", 2000), 10_0000);
|
||||
if (block$serverside_blocks < 0) block$serverside_blocks = 0;
|
||||
@@ -770,6 +772,10 @@ public class Config {
|
||||
return instance.resource_pack$protection$obfuscation$resource_location$bypass_equipments;
|
||||
}
|
||||
|
||||
public static Key deceiveBukkitMaterial() {
|
||||
return instance.block$deceive_bukkit_material;
|
||||
}
|
||||
|
||||
public static boolean generateModAssets() {
|
||||
return instance.resource_pack$generate_mod_assets;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user