2022-07-28 03:57:50 +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
|
2023-07-04 21:10:53 +00:00
|
|
|
index c62552b37d9dd8f0a50ab454af6090d876e0879f..2f4c606562c08189c817280a601a32632959614e 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
|
2023-07-04 21:10:53 +00:00
|
|
|
@@ -844,7 +844,7 @@ public abstract class LivingEntity extends Entity implements Attackable {
|
2022-07-28 03:57:50 +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);
|
2023-07-04 21:10:53 +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
|
|
|
}
|
|
|
|
}
|
|
|
|
|