Skip to content

Commit

Permalink
safe pollination casts
Browse files Browse the repository at this point in the history
  • Loading branch information
HestiMae committed Aug 21, 2023
1 parent adf6858 commit 2ee18b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ org.gradle.jvmargs = -Xmx1G
org.gradle.parallel = true

# Mod Properties
version = 1.3.2
version = 1.3.3
maven_group = garden.hestia
archives_base_name = pollinators-paradise
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ public void pantsTick(CallbackInfo ci) {
if (j < 3) {
blockState2 = blockState.with(SweetBerryBushBlock.AGE, j + 1);
}
} else if (blockState.isOf(Blocks.CAVE_VINES) || blockState.isOf(Blocks.CAVE_VINES_PLANT)) {
((Fertilizable) blockState.getBlock()).fertilize((ServerWorld) this.getWorld(), this.random, blockPos, blockState);
} else if (blockState.getBlock() instanceof Fertilizable fertilizable && this.getWorld() instanceof ServerWorld sw && (blockState.isOf(Blocks.CAVE_VINES) || blockState.isOf(Blocks.CAVE_VINES_PLANT))) {
fertilizable.fertilize(sw, this.random, blockPos, blockState);
}

if (blockState2 != null) {
Expand Down
Binary file modified src/main/resources/assets/pollinators_paradise/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2ee18b0

Please sign in to comment.