mirror of
https://github.com/AtlasMediaGroup/Scissors.git
synced 2024-12-01 11:27:10 -05:00
Don't log invalid teams to console
This commit is contained in:
parent
9e244f52c9
commit
236e8a95a3
1 changed files with 21 additions and 0 deletions
21
patches/server/0033-Don-t-log-invalid-teams-to-console.patch
Normal file
21
patches/server/0033-Don-t-log-invalid-teams-to-console.patch
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Allink <arclicious@vivaldi.net>
|
||||||
|
Date: Tue, 17 May 2022 05:57:52 +0100
|
||||||
|
Subject: [PATCH] Don't log invalid teams to console
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
||||||
|
index 68ae4dfe3f4a77605b19607b5f04a2a6d07d6fc8..b7efb87767570992e9bb14510e510f2b37ec2226 100644
|
||||||
|
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
||||||
|
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
||||||
|
@@ -816,7 +816,9 @@ public abstract class LivingEntity extends Entity {
|
||||||
|
boolean flag = scoreboardteam != null && this.level.getScoreboard().addPlayerToTeam(this.getStringUUID(), scoreboardteam);
|
||||||
|
|
||||||
|
if (!flag) {
|
||||||
|
- LivingEntity.LOGGER.warn("Unable to add mob to team \"{}\" (that team probably doesn't exist)", s);
|
||||||
|
+ // Scissors start - Prevent log spam possible with this error message, easily provokable by players in creative.
|
||||||
|
+ // LivingEntity.LOGGER.warn("Unable to add mob to team \"{}\" (that team probably doesn't exist)", s);
|
||||||
|
+ // Scissors end
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue