Skip to content

Commit

Permalink
fix up changed bool name
Browse files Browse the repository at this point in the history
  • Loading branch information
onebeastchris committed Aug 20, 2023
1 parent ad537dc commit f4da1a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ protected Class<?> findClass(String name) throws ClassNotFoundException {
protected Class<?> findClass(String name, boolean checkGlobal) throws ClassNotFoundException {
// Don't let extensions load classes from Geyser or minecraft packages without a warning
if (name.startsWith("org.geysermc.geyser.") || name.startsWith("net.minecraft.")) {
if (!warned) {
if (!warnedForInternalClassLoad) {
GeyserImpl.getInstance().getLogger().warning("Extension " + this.description.name() + " loads class " + name + " from the Geyser package. " +
"This can change at any time and break the extension, additionally to causing unexpected behaviour!");
warned = true;
warnedForInternalClassLoad = true;
}
}

Expand Down

0 comments on commit f4da1a3

Please sign in to comment.