mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-19 15:09:15 +00:00
修复错误
This commit is contained in:
@@ -27,7 +27,7 @@ public interface Entity {
|
||||
|
||||
float yRot();
|
||||
|
||||
int entityID();
|
||||
int entityId();
|
||||
|
||||
World world();
|
||||
|
||||
|
||||
@@ -274,7 +274,7 @@ public abstract class Furniture implements Cullable {
|
||||
}
|
||||
|
||||
public int entityId() {
|
||||
return this.metaDataEntity.entityID();
|
||||
return this.metaDataEntity.entityId();
|
||||
}
|
||||
|
||||
public boolean hasExternalModel() {
|
||||
|
||||
@@ -215,6 +215,9 @@ public class Config {
|
||||
protected int client_optimization$entity_culling$rate_limiting$bucket_size;
|
||||
protected int client_optimization$entity_culling$rate_limiting$restore_per_tick;
|
||||
|
||||
protected boolean bedrock_edition_support$enable;
|
||||
protected String bedrock_edition_support$player_prefix;
|
||||
|
||||
public Config(CraftEngine plugin) {
|
||||
this.plugin = plugin;
|
||||
this.configVersion = PluginProperties.getValue("config");
|
||||
@@ -589,6 +592,10 @@ public class Config {
|
||||
client_optimization$entity_culling$rate_limiting$bucket_size = config.getInt("client-optimization.entity-culling.rate-limiting.bucket-size", 300);
|
||||
client_optimization$entity_culling$rate_limiting$restore_per_tick = config.getInt("client-optimization.entity-culling.rate-limiting.restore-per-tick", 5);
|
||||
|
||||
// bedrock support
|
||||
bedrock_edition_support$enable = config.getBoolean("bedrock-edition-support.enable", true);
|
||||
bedrock_edition_support$player_prefix = config.getString("bedrock-edition-support.player-prefix", "!");
|
||||
|
||||
firstTime = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ public interface ArgumentString {
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (!(o instanceof Complex that)) return false;
|
||||
if (!(o instanceof Complex2 that)) return false;
|
||||
return this.rawText.equals(that.rawText);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user