Skip to content

Commit

Permalink
Allowed paragraph (§) in text fields
Browse files Browse the repository at this point in the history
  • Loading branch information
superblaubeere27 committed Aug 1, 2021
1 parent cb227f4 commit e025340
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* This file is part of LiquidBounce (https://github.com/CCBlueX/LiquidBounce)
*
* Copyright (c) 2016 - 2021 CCBlueX
*
* LiquidBounce is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LiquidBounce is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LiquidBounce. If not, see <https://www.gnu.org/licenses/>.
*/

package net.ccbluex.liquidbounce.injection.mixins.minecraft.gui;


import net.minecraft.SharedConstants;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;

@Mixin(SharedConstants.class)
public class MixinSharedConstants {

/**
* @author superblaubeere27
*/
@Overwrite
public static boolean isValidChar(char chr) {
return chr >= ' ' && chr != 127;
}
}
1 change: 1 addition & 0 deletions src/main/resources/liquidbounce.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"minecraft.gui.MixinInGameHud",
"minecraft.gui.MixinRealmsMainScreen",
"minecraft.gui.MixinScreen",
"minecraft.gui.MixinSharedConstants",
"minecraft.gui.MixinSplashOverlay",
"minecraft.network.MixinClientConnection",
"minecraft.network.MixinClientPlayerInteractionManager",
Expand Down

0 comments on commit e025340

Please sign in to comment.