Skip to content

Commit

Permalink
Fixed Incompatibility with Flywheel / Create
Browse files Browse the repository at this point in the history
relates to #50
  • Loading branch information
DrexHD committed Jul 27, 2024
1 parent e3781ef commit a0767ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- Client side mixin issues
- Incompatibility with Flywheel / Create

## [1.4.3] - 2024-07-20
### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public abstract class LevelChunkSectionMixin {
)
)
public PalettedContainer<BlockState> setPresetValuesArgument(IdMap<BlockState> idMap, Object defaultValue, PalettedContainer.Strategy strategy, Operation<PalettedContainer<BlockState>> original) {
if (((Object) this).getClass() != LevelChunkSection.class) {
// Compatibility with Flywheel's VirtualChunkSection
return original.call(idMap, defaultValue, strategy);
}
// custom arguments
ChunkAccess chunkAccess = Arguments.CHUNK_ACCESS.get();
Integer chunkSectionIndex = Arguments.CHUNK_SECTION_INDEX.get();
Expand Down

0 comments on commit a0767ba

Please sign in to comment.