Skip to content

Commit 6966d29

Browse files
committed
2.0.5
1 parent 56dfd22 commit 6966d29

4 files changed

Lines changed: 8 additions & 16 deletions

File tree

changelog.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1 @@
1-
- Update Veil to fix an issue where sub-levels weren't directionally shaded when Iris was installed
2-
- Allow UUIDs to be used to target sub-levels in commands
3-
- Removed LittleTiles as a marked incompatibility
4-
- Add a `/sable forceload query` command
5-
- Fix Create Mechanical Rollers not working when Sable is installed
6-
- Update some mixins for small optimizations
7-
8-
- Fix empty cached sub-level storage and region files not getting discarded from the cache on save
9-
- Add a server config option for pruning sub-level storage files. This is experimental, and there is a chance of data loss. Please backup regularly if testing this.
10-
11-
- Fix a crash where a broken log pipe would cause Sable Rapier to panic. This was most commonly experienced by launching the game through Modrinth/CurseForge and closing the launcher before entering a world.
12-
- Fix a crash with empty Create contraptions
13-
- Fix a crash with block properties and some modded blocks
14-
- Prevent lightning in sub-level plots
1+
- Fix an issue where assembling massless Create contraptions would crash the server

common/src/main/java/dev/ryanhcode/sable/api/physics/mass/MassData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public interface MassData {
3434
Vector3dc getCenterOfMass();
3535

3636
default boolean isInvalid() {
37-
return this.getMass() <= 0.0;
37+
return this.getMass() <= 0.0 || this.getCenterOfMass() == null;
3838
}
3939

4040
/**

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=2.0.4
1+
version=2.0.5
22
group=dev.ryanhcode.sable
33
java_version=21
44

neoforge/src/main/java/dev/ryanhcode/sable/neoforge/mixin/compatibility/create/contraptions/AbstractContraptionEntityMixin.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ public CompoundTag saveWithoutId(final CompoundTag nbt) {
175175
}
176176

177177
this.sable$massTracker = MassTracker.build(this.sable$blockGetter(), this.sable$localBounds);
178+
if (this.sable$massTracker.isInvalid()) {
179+
this.sable$massTracker = null;
180+
return;
181+
}
182+
178183
final Vector3d temp = this.sable$massTracker.getCenterOfMass().negate(new Vector3d()).add(0.5, 0.5, 0.5);
179184
for (final FloatingBlockCluster cluster : this.sable$floatingClusterContainer.clusters) {
180185
cluster.getBlockData().translateOrigin(temp);

0 commit comments

Comments
 (0)