2022-05-21 20:35:33 +00:00
|
|
|
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
|
2022-06-04 02:03:34 +00:00
|
|
|
index d8393887cc98930815864eca28b07ef89b26f39e..3b5c48bfb7e7bcd0be9ad6d0357213c7adde08ad 100644
|
2022-05-21 20:35:33 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
2022-06-04 02:03:34 +00:00
|
|
|
@@ -813,7 +813,9 @@ public abstract class LivingEntity extends Entity {
|
2022-05-21 20:35:33 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|