moved mixin class, removed new warning in 1.20 -> 1.19.4

This commit is contained in:
FlorianMichael 2023-11-12 22:23:36 +01:00
parent 45c8f03912
commit 740a439eff
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
3 changed files with 7 additions and 2 deletions

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package de.florianmichael.viafabricplus.injection.mixin.fixes.minecraft;
package de.florianmichael.viafabricplus.injection.mixin.fixes.minecraft.entity;
import de.florianmichael.viafabricplus.settings.impl.VisualSettings;
import net.minecraft.client.model.ModelPart;

View File

@ -160,4 +160,9 @@ public abstract class MixinClientPlayNetworkHandler {
}
return instance.getRecipes();
}
@WrapWithCondition(method = "setPublicSession", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;warn(Ljava/lang/String;Ljava/lang/Object;)V", remap = false))
public boolean removeInvalidSignatureWarning(Logger instance, String s, Object o) {
return ProtocolHack.getTargetVersion().isNewerThanOrEqualTo(VersionEnum.r1_19_4);
}
}

View File

@ -26,7 +26,7 @@
"compat.sodium.MixinChunkTracker",
"fixes.authlib.MixinKeyPairResponse",
"fixes.authlib.MixinYggdrasilUserApiService",
"fixes.minecraft.MixinBipedEntityModel",
"fixes.minecraft.entity.MixinBipedEntityModel",
"fixes.minecraft.input.MixinCamera",
"fixes.minecraft.MixinClientPlayerInteractionManager",
"fixes.minecraft.MixinDrawContext",