port to 1.21.4, RECORDS LIST IS BROKEN
All checks were successful
Build fabric mod / build (push) Successful in 38m2s
All checks were successful
Build fabric mod / build (push) Successful in 38m2s
This commit is contained in:
parent
f082788406
commit
c65e906500
@ -4,17 +4,17 @@ org.gradle.parallel=true
|
||||
|
||||
# Fabric Properties
|
||||
# check these on https://fabricmc.net/develop
|
||||
minecraft_version=1.21.2
|
||||
yarn_mappings=1.21.2+build.1
|
||||
minecraft_version=1.21.4
|
||||
yarn_mappings=1.21.4+build.8
|
||||
loader_version=0.16.14
|
||||
loom_version=1.10-SNAPSHOT
|
||||
|
||||
# Fabric API
|
||||
fabric_version=0.106.1+1.21.2
|
||||
fabric_version=0.119.3+1.21.4
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 1.1.2+1.21.2
|
||||
mod_version = 1.1.2+1.21.4
|
||||
maven_group = ru.themixray
|
||||
archives_base_name = repeating-mod
|
||||
|
||||
# Compatible with: 1.21.2, ?
|
||||
# Compatible with: 1.21.4, ?
|
@ -10,7 +10,7 @@ import ru.themixray.repeating_mod.Main;
|
||||
@Mixin(KeyboardInput.class)
|
||||
public abstract class InputMixin {
|
||||
@Inject(at = @At(value = "TAIL"), method = "tick")
|
||||
private void onTickTail(boolean slowDown, float f, CallbackInfo ci) {
|
||||
private void onTickTail(CallbackInfo ci) {
|
||||
if (Main.me.is_replaying) {
|
||||
if (Main.input_replay != null) {
|
||||
Main.input_replay.inputCallback();
|
||||
|
@ -26,13 +26,18 @@ public class RecordListWidget extends ScrollableWidget {
|
||||
return res;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getContentsHeightWithPadding() {
|
||||
return !widgets.isEmpty() ? widgets.size() * 55 + (widgets.size() - 1) * 2 : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected double getDeltaYPerScroll() {
|
||||
return 10;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void renderContents(DrawContext ctx, int mouseX, int mouseY, float delta) {
|
||||
protected void renderWidget(DrawContext ctx, int mouseX, int mouseY, float delta) {
|
||||
int y = 0;
|
||||
for (RecordWidget wid: widgets) {
|
||||
wid.setY(y);
|
||||
@ -63,11 +68,6 @@ public class RecordListWidget extends ScrollableWidget {
|
||||
return focused;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getContentsHeight() {
|
||||
return !widgets.isEmpty() ? widgets.size() * 55 + (widgets.size() - 1) * 2 : 0;
|
||||
}
|
||||
|
||||
public void init(RepeatingScreen screen) {
|
||||
for (RecordWidget widget : widgets) {
|
||||
widget.init(screen);
|
||||
|
@ -29,7 +29,7 @@
|
||||
"depends": {
|
||||
"fabricloader": ">=0.14.14",
|
||||
"fabric-api": "*",
|
||||
"minecraft": ">=1.21.2",
|
||||
"minecraft": ">=1.21.4",
|
||||
"java": ">=17"
|
||||
},
|
||||
"suggests": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user