2022-07-28 03:57:50 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2023-07-01 20:21:13 +00:00
|
|
|
From: Allink <arclicious@vivaldi.net>
|
|
|
|
Date: Tue, 17 May 2022 05:57:52 +0100
|
2022-07-28 03:57:50 +00:00
|
|
|
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
|
2024-01-24 01:05:59 +00:00
|
|
|
index 7976953ff2fcaa52cb2edcbeb686690e6f3c1953..652c90cb5e051cdc04a3eaf482072304d3ae89ec 100644
|
2022-07-28 03:57:50 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
2024-01-18 23:05:55 +00:00
|
|
|
@@ -861,7 +861,7 @@ public abstract class LivingEntity extends Entity implements Attackable {
|
2023-06-09 00:58:46 +00:00
|
|
|
boolean flag = scoreboardteam != null && this.level().getScoreboard().addPlayerToTeam(this.getStringUUID(), scoreboardteam);
|
2022-07-28 03:57:50 +00:00
|
|
|
|
|
|
|
if (!flag) {
|
|
|
|
- LivingEntity.LOGGER.warn("Unable to add mob to team \"{}\" (that team probably doesn't exist)", s);
|
2023-07-01 20:21:13 +00:00
|
|
|
+ // Scissors - Prevent log spam possible with this error message, easily provokable by players in creative.
|
2022-07-28 03:57:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|