Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add angelica hud-caching compat #15

Merged
merged 6 commits into from
Aug 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
spotlessApply
GitHub GTNH Actions committed Jul 13, 2024
commit 20111899a22b9420430d47bebc49d54cd16a35ea
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@
import java.lang.ref.WeakReference;
import java.util.*;

import com.google.common.collect.Maps;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.entity.player.EntityPlayer;
@@ -13,9 +12,10 @@

import org.lwjgl.opengl.GL11;

import com.google.common.collect.Maps;

import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import ru.timeconqueror.lootgames.LootGames;
import ru.timeconqueror.lootgames.common.block.tile.MSMasterTile;
import ru.timeconqueror.lootgames.minigame.minesweeper.GameMineSweeper;
import ru.timeconqueror.lootgames.utils.future.BlockPos;
import ru.timeconqueror.timecore.api.util.MathUtils;
@@ -25,7 +25,8 @@

public class MSOverlayHandler {

private static final Map<BlockPos, WeakReference<GameMineSweeper>> ACTIVE_GAMES = Maps.newHashMapWithExpectedSize(1);
private static final Map<BlockPos, WeakReference<GameMineSweeper>> ACTIVE_GAMES = Maps
.newHashMapWithExpectedSize(1);

private static final TexturedRect FIRST_SLOT_START = new TexturedRect(3 * 1.5F, 16 * 1.5F, 15, 0, 3, 16);
private static final TexturedRect FIRST_SLOT_REPEAT = new TexturedRect(26 * 1.5F, 16 * 1.5F, 18, 0, 26, 16);