aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/notenoughupdates/mixins/devenv
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-05-16 01:23:43 +0200
committernea <nea@nea.moe>2023-05-16 01:23:43 +0200
commitead6762eb1c005914b05f9d3c29f334989c67513 (patch)
treecd1409756be2bc4a93195c31d432fef053afe002 /src/main/java/moe/nea/notenoughupdates/mixins/devenv
parent96c546cc73880a7c502c17aadda6ca84c847692d (diff)
downloadfirmament-ead6762eb1c005914b05f9d3c29f334989c67513.tar.gz
firmament-ead6762eb1c005914b05f9d3c29f334989c67513.tar.bz2
firmament-ead6762eb1c005914b05f9d3c29f334989c67513.zip
Replace references to NEU with Firmament
Diffstat (limited to 'src/main/java/moe/nea/notenoughupdates/mixins/devenv')
-rw-r--r--src/main/java/moe/nea/notenoughupdates/mixins/devenv/DisableCommonPacketWarnings.java37
-rw-r--r--src/main/java/moe/nea/notenoughupdates/mixins/devenv/DisableInvalidFishingHook.java15
-rw-r--r--src/main/java/moe/nea/notenoughupdates/mixins/devenv/MixinScoreboard.java16
3 files changed, 0 insertions, 68 deletions
diff --git a/src/main/java/moe/nea/notenoughupdates/mixins/devenv/DisableCommonPacketWarnings.java b/src/main/java/moe/nea/notenoughupdates/mixins/devenv/DisableCommonPacketWarnings.java
deleted file mode 100644
index 8302170..0000000
--- a/src/main/java/moe/nea/notenoughupdates/mixins/devenv/DisableCommonPacketWarnings.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package moe.nea.notenoughupdates.mixins.devenv;
-
-import net.minecraft.client.network.ClientPlayNetworkHandler;
-import net.minecraft.util.Identifier;
-import org.slf4j.Logger;
-import org.spongepowered.asm.mixin.Mixin;
-import org.spongepowered.asm.mixin.injection.At;
-import org.spongepowered.asm.mixin.injection.Redirect;
-
-import java.util.Objects;
-
-@Mixin(ClientPlayNetworkHandler.class)
-public class DisableCommonPacketWarnings {
-
- @Redirect(method = "onCustomPayload", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;warn(Ljava/lang/String;Ljava/lang/Object;)V"))
- public void onCustomPacket(Logger instance, String s, Object o) {
- if (!Objects.equals(o, Identifier.of("badlion", "mods"))) {
- instance.warn(s, o);
- }
- }
-
- @Redirect(method = "onEntityPassengersSet", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;warn(Ljava/lang/String;)V"))
- public void onUnknownPassenger(Logger instance, String s) {
- // Ignore passenger data for unknown entities, since HyPixel just sends a lot of those.
- }
-
- @Redirect(method = "onTeam", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;warn(Ljava/lang/String;[Ljava/lang/Object;)V"))
- public void onOnTeam(Logger instance, String s, Object[] objects) {
- // Ignore data for unknown teams, since HyPixel just sends a lot of invalid team data.
- }
-
- @Redirect(method = "onPlayerList", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;warn(Ljava/lang/String;Ljava/lang/Object;)V"))
- public void onOnPlayerList(Logger instance, String s, Object o) {
- // Ignore invalid player info, since HyPixel just sends a lot of invalid player info
- }
-
-}
diff --git a/src/main/java/moe/nea/notenoughupdates/mixins/devenv/DisableInvalidFishingHook.java b/src/main/java/moe/nea/notenoughupdates/mixins/devenv/DisableInvalidFishingHook.java
deleted file mode 100644
index 0c434bd..0000000
--- a/src/main/java/moe/nea/notenoughupdates/mixins/devenv/DisableInvalidFishingHook.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package moe.nea.notenoughupdates.mixins.devenv;
-
-import net.minecraft.entity.projectile.FishingBobberEntity;
-import org.slf4j.Logger;
-import org.spongepowered.asm.mixin.Mixin;
-import org.spongepowered.asm.mixin.injection.At;
-import org.spongepowered.asm.mixin.injection.Redirect;
-
-@Mixin(FishingBobberEntity.class)
-public class DisableInvalidFishingHook {
- @Redirect(method = "onSpawnPacket", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;error(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V"))
- public void onOnSpawnPacket(Logger instance, String s, Object o, Object o1) {
- // Don't warn for broken fishing hooks, since HyPixel sends a bunch of those
- }
-}
diff --git a/src/main/java/moe/nea/notenoughupdates/mixins/devenv/MixinScoreboard.java b/src/main/java/moe/nea/notenoughupdates/mixins/devenv/MixinScoreboard.java
deleted file mode 100644
index 306b900..0000000
--- a/src/main/java/moe/nea/notenoughupdates/mixins/devenv/MixinScoreboard.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package moe.nea.notenoughupdates.mixins.devenv;
-
-import net.minecraft.scoreboard.Scoreboard;
-import org.slf4j.Logger;
-import org.spongepowered.asm.mixin.Mixin;
-import org.spongepowered.asm.mixin.injection.At;
-import org.spongepowered.asm.mixin.injection.Inject;
-import org.spongepowered.asm.mixin.injection.Redirect;
-
-@Mixin(Scoreboard.class)
-public class MixinScoreboard {
- @Redirect(method = "addTeam", at=@At(value = "INVOKE", target = "Lorg/slf4j/Logger;warn(Ljava/lang/String;Ljava/lang/Object;)V"))
- public void onExistingteam(Logger instance, String s, Object o) {
- // Ignore creations of existing teams
- }
-}