Skip to content

Commit

Permalink
Fix bug: only load geometry in client environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
boybook committed Mar 16, 2024
1 parent b78b166 commit ddc3b2e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ class BedrockResourcePackLoader(
val env = FabricLoader.getInstance().environmentType
this.init()
// Geometry
context.resource.geometries.forEach { (key, value) ->
BedrockAddonsRegistry.models[key] = BedrockGeometryModel(value)
if (env == EnvType.CLIENT) {
context.resource.geometries.forEach { (key, value) ->
BedrockAddonsRegistry.models[key] = BedrockGeometryModel(value)
}
}
// Blocks
for (block in context.resource.blocks) {
Expand Down

0 comments on commit ddc3b2e

Please sign in to comment.