Skip to content

Commit

Permalink
Merge pull request #6 from Dreaming-Codes/1.19
Browse files Browse the repository at this point in the history
[1.19.2] Updated open parties and claim
  • Loading branch information
Globox1997 committed Aug 24, 2023
2 parents 3edd483 + f5269ea commit c680a38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dependencies {
modImplementation ("dev.onyxstudios.cardinal-components-api:cardinal-components-entity:5.0.0-beta.1")
modImplementation "io.wispforest:owo-lib:0.8.5+1.19"
// OPAC
modCompileOnly ('curse.maven:open-parties-and-claims-636608:4104537') {
modCompileOnly ('curse.maven:open-parties-and-claims-636608:4627627') {
exclude(group: "net.fabricmc.fabric-api")
}
// LibZ
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private void onRaidSpawnMixin(IServerData<CM, P> serverData, ServerWorld world,
}

@Inject(method = "onBucketUse", at = @At("TAIL"), locals = LocalCapture.CAPTURE_FAILSOFT, cancellable = true)
private void onBucketUseMixin(IServerData<CM, P> serverData, Entity entity, World world, HitResult hitResult, ItemStack itemStack, CallbackInfoReturnable<Boolean> info, BlockPos pos) {
private void onBucketUseMixin(IServerData<CM, ?> serverData, Entity entity, ServerWorld world, HitResult hitResult, ItemStack itemStack, CallbackInfoReturnable<Boolean> info, BlockPos pos, Direction direction) {
if (!info.getReturnValue() && entity instanceof PlayerEntity playerEntity && world.getRegistryKey() == World.OVERWORLD && !NumismaticClaimMain.CONFIG.overworldPlayerSpecificItemUse
&& claimsManager.get(world.getDimensionKey().getValue(), new ChunkPos(pos)) == null && !playerEntity.isCreative()) {
playerEntity.sendMessage(serverData.getAdaptiveLocalizer().getFor((ServerPlayerEntity) playerEntity, ITEM_DISABLED_MAIN));
Expand Down

0 comments on commit c680a38

Please sign in to comment.