Skip to content

Commit 27a72ab

Browse files
committed
added null guard
1 parent 29a692e commit 27a72ab

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎changelog.txt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
1.21.1-0.3.1
2+
3+
- Added guard against null values
4+
5+
16
1.21.1-0.3.0
27

38
- Added shape retaining camo blocks. They use the collision shape of the block used for camo.

‎gradle.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ mod_name=Camol
3434
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
3535
mod_license=All Rights Reserved
3636
# The mod version. See https://semver.org/
37-
mod_version=1.21.1-0.3.0
37+
mod_version=1.21.1-0.3.1
3838
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
3939
# This should match the base package used for the mod sources.
4040
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html

‎src/main/java/cy/jdkdigital/camol/utils/CamoPosition.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,8 @@ public record CamoPosition(String camoType, BlockState state)
2424
CamoPosition::state,
2525
CamoPosition::new
2626
);
27+
28+
public String camoType() {
29+
return camoType != null ? camoType : "normal";
30+
}
2731
}

0 commit comments

Comments
 (0)