mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-19 15:09:15 +00:00
修复folia netty线程访问entityid
This commit is contained in:
@@ -38,6 +38,7 @@ public abstract class Furniture implements Cullable {
|
|||||||
public final CustomFurniture config;
|
public final CustomFurniture config;
|
||||||
public final FurnitureDataAccessor dataAccessor;
|
public final FurnitureDataAccessor dataAccessor;
|
||||||
public final Entity metaDataEntity;
|
public final Entity metaDataEntity;
|
||||||
|
public final int metaDataEntityId;
|
||||||
|
|
||||||
protected CullingData cullingData;
|
protected CullingData cullingData;
|
||||||
protected FurnitureVariant currentVariant;
|
protected FurnitureVariant currentVariant;
|
||||||
@@ -54,6 +55,7 @@ public abstract class Furniture implements Cullable {
|
|||||||
this.config = config;
|
this.config = config;
|
||||||
this.dataAccessor = data;
|
this.dataAccessor = data;
|
||||||
this.metaDataEntity = metaDataEntity;
|
this.metaDataEntity = metaDataEntity;
|
||||||
|
this.metaDataEntityId = metaDataEntity.entityId();
|
||||||
this.setVariantInternal(config.getVariant(data));
|
this.setVariantInternal(config.getVariant(data));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -282,11 +284,11 @@ public abstract class Furniture implements Cullable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int entityId() {
|
public int entityId() {
|
||||||
return this.metaDataEntity.entityId();
|
return this.metaDataEntityId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasExternalModel() {
|
public boolean hasExternalModel() {
|
||||||
return hasExternalModel;
|
return this.hasExternalModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Vec3d getRelativePosition(Vector3f position) {
|
public Vec3d getRelativePosition(Vector3f position) {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx4G
|
|||||||
# Project settings
|
# Project settings
|
||||||
project_version=0.0.66.4
|
project_version=0.0.66.4
|
||||||
config_version=62
|
config_version=62
|
||||||
lang_version=44
|
lang_version=45
|
||||||
project_group=net.momirealms
|
project_group=net.momirealms
|
||||||
latest_supported_version=1.21.11
|
latest_supported_version=1.21.11
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user