diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-10-01 00:27:21 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-10-01 00:27:21 +0800 |
| commit | 868f4d2970aa7bf6105c627393b8ea3baf7f029b (patch) | |
| tree | 646bb61a4ac41d0d8b2870be48111892d01f56ae /RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ScreenHelper.java | |
| parent | b7778439101429fe432d42287707bc5d57dd3764 (diff) | |
| download | RoughlyEnoughItems-868f4d2970aa7bf6105c627393b8ea3baf7f029b.tar.gz RoughlyEnoughItems-868f4d2970aa7bf6105c627393b8ea3baf7f029b.tar.bz2 RoughlyEnoughItems-868f4d2970aa7bf6105c627393b8ea3baf7f029b.zip | |
Allow a more specific click area handler.
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ScreenHelper.java')
| -rw-r--r-- | RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ScreenHelper.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ScreenHelper.java b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ScreenHelper.java index b5ef8a29e..04b789ff0 100644 --- a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ScreenHelper.java +++ b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ScreenHelper.java @@ -24,7 +24,6 @@ package me.shedaniel.rei.impl; import com.google.common.collect.Iterables; -import com.google.common.collect.Lists; import com.google.common.collect.Sets; import com.mojang.blaze3d.platform.Window; import com.mojang.blaze3d.vertex.PoseStack; @@ -44,8 +43,7 @@ import me.shedaniel.rei.gui.widget.TextFieldWidget; import net.fabricmc.api.ClientModInitializer; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; -import net.fabricmc.fabric.api.event.client.ClientTickCallback; -import net.fabricmc.fabric.api.screenhandler.v1.ScreenHandlerRegistry; +import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents; import net.fabricmc.loader.api.FabricLoader; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.screens.Screen; @@ -288,7 +286,7 @@ public class ScreenHelper implements ClientModInitializer, REIHelper { return; } Executor.run(() -> () -> { - ClientTickCallback.EVENT.register(minecraftClient -> { + ClientTickEvents.END_CLIENT_TICK.register(minecraft -> { if (isOverlayVisible() && getSearchField() != null) getSearchField().tick(); }); |
