Skip to content

Commit

Permalink
Do not run needless patreon auth checks (#10136)
Browse files Browse the repository at this point in the history
Do not run needless patreon auth checks
  • Loading branch information
Thodor12 authored Sep 5, 2024
1 parent bce345d commit 8d716e4
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
import com.minecolonies.core.client.gui.WindowBannerPicker;
import com.minecolonies.core.client.gui.map.WindowColonyMap;
import com.minecolonies.core.colony.buildings.workerbuildings.BuildingTownHall;
import com.minecolonies.core.network.messages.server.colony.*;
import com.minecolonies.core.network.messages.server.colony.ColonyNameStyleMessage;
import com.minecolonies.core.network.messages.server.colony.ColonyStructureStyleMessage;
import com.minecolonies.core.network.messages.server.colony.ColonyTextureStyleMessage;
import com.minecolonies.core.network.messages.server.colony.TeamColonyColorChangeMessage;
import net.minecraft.ChatFormatting;
import net.minecraft.Util;
import net.minecraft.client.Minecraft;
Expand Down Expand Up @@ -311,7 +314,7 @@ public void onUpdate()
*/
public void checkFeatureUnlock()
{
if (!building.getColony().getPermissions().getOwner().equals(Minecraft.getInstance().player.getUUID()))
if (isFeatureUnlocked.get() || !building.getColony().getPermissions().getOwner().equals(Minecraft.getInstance().player.getUUID()))
{
return;
}
Expand Down

0 comments on commit 8d716e4

Please sign in to comment.