This commit is contained in:
parent
4197534e8f
commit
c85c8798f1
@ -12,7 +12,7 @@ import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
@SuppressWarnings("unused")
|
||||
@Mixin(NetherPortalBlock.AreaHelper.class)
|
||||
public class MixinNetherPortalBlockAreaHelper {
|
||||
@Redirect(at = @At(value = "INVOKE", target = "Lnet/minecraft/block/BlockState;getBlock()Lnet/minecraft/block/Block;"), method = {"distanceToPortalEdge", "findHeight"})
|
||||
@Redirect(at = @At(value = "INVOKE", target = "Lnet/minecraft/block/BlockState;getBlock()Lnet/minecraft/block/Block;"), method = "*")
|
||||
public Block redirectBlock(BlockState state) {
|
||||
Block block = state.getBlock();
|
||||
if (block.isIn(SlightlyVanilla.EXTRA_PORTAL_BLOCKS_TAG) && SlightlyVanilla.getConfig().cryingObsidianNetherPortal) {
|
||||
|
Reference in New Issue
Block a user