Skip to content

Commit

Permalink
mark as cancellable otherwise my ass is sliceable
Browse files Browse the repository at this point in the history
  • Loading branch information
doctor4t committed Oct 30, 2022
1 parent 2a108bb commit e5c9b57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
- Fixed rana frog bowls being unequippable in trinket slots

### Pick Your Poison 1.0.6 - 1.18.2
- Changed the batrachotoxin death message to "Player croaked"*
- Changed the batrachotoxin death message to "Player croaked"
- Added new death messages for dying of frog effects in PvP

### Pick Your Poison 1.0.5 - 1.18.2
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ archives_base_name = pickyourpoison

# Dependencies
trinkets_version=3.4.0
cca_version=5.0.0-beta.1
cca_version=5.0.2

#Publishing
owners = Ladysnake
license_header = ARR
curseforge_id = 596706
curseforge_versions = 1.19
curseforge_versions = 1.19.2; 1.19.1; 1.19
cf_requirements = fabric-api; geckolib
cf_optionals = trinkets
release_type = release
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

@Mixin(Blocks.class)
public class BlocksMixin {
@Inject(method = "canSpawnOnLeaves", at = @At("RETURN"))
@Inject(method = "canSpawnOnLeaves", at = @At("RETURN"), cancellable = true)
private static void canSpawnOnLeaves(BlockState state, BlockView world, BlockPos pos, EntityType<?> type, CallbackInfoReturnable<Boolean> cir) {
cir.setReturnValue(cir.getReturnValue() || type == PickYourPoison.POISON_DART_FROG);
}
Expand Down

0 comments on commit e5c9b57

Please sign in to comment.