Improve Media Handler API

- Also fix logspam
This commit is contained in:
Martin Prokoph
2024-07-07 18:54:15 +02:00
parent 9c550dcd7d
commit 3b3009fefb
8 changed files with 115 additions and 51 deletions

View File

@@ -36,7 +36,7 @@ public class PictureSignClientFabric implements ClientModInitializer {
}
});
ClientTickEvents.END_CLIENT_TICK.register(client -> {
GIFHandler.gifPlayers.forEach(((identifier, handler) -> handler.tick()));
GIFHandler.gifHandlers.forEach(((identifier, handler) -> handler.tick()));
if (!BINDING_COPY_SIGN.isPressed()) return;
BINDING_COPY_SIGN.setPressed(false);
if (client.player == null || client.world == null || client.crosshairTarget == null || client.crosshairTarget.getType() != HitResult.Type.BLOCK) return;