Skip to content

Commit

Permalink
mixin cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MoriyaShiine committed Oct 18, 2024
1 parent d4f5f64 commit 40bca91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public ShrapnelBlockEntity(EntityType<? extends FallingBlockEntity> entityType,

private ShrapnelBlockEntity(World world, double x, double y, double z, BlockState block, @Nullable PlayerEntity owner) {
this(EntityType.FALLING_BLOCK, world);
((FallingBlockEntityAccessor) this).setBlock(block);
((FallingBlockEntityAccessor) this).blast$setBlock(block);
intersectionChecked = true;
setPosition(x, y, z);
setVelocity(Vec3d.ZERO);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ladysnake/blast/mixin/EnderEyeItemMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@Mixin(EnderEyeItem.class)
public class EnderEyeItemMixin {
@Inject(method = "use", at = @At("HEAD"), cancellable = true)
private void use(World world, PlayerEntity user, Hand hand, CallbackInfoReturnable<TypedActionResult<ItemStack>> callbackInfoReturnable) {
private void blast$remoteDetonator(World world, PlayerEntity user, Hand hand, CallbackInfoReturnable<TypedActionResult<ItemStack>> callbackInfoReturnable) {
BlockPos hitPos = world.raycast(new RaycastContext(user.getEyePos(), user.getEyePos().add(user.getRotationVector().multiply(160)), RaycastContext.ShapeType.COLLIDER, RaycastContext.FluidHandling.NONE, user)).getBlockPos();

BlockPos closestDetonatorPos = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
@Mixin(FallingBlockEntity.class)
public interface FallingBlockEntityAccessor {
@Accessor("block")
void setBlock(BlockState block);
void blast$setBlock(BlockState block);
}

0 comments on commit 40bca91

Please sign in to comment.