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
|
# Fabric Properties
|
||||||
# check these on https://fabricmc.net/develop
|
# check these on https://fabricmc.net/develop
|
||||||
minecraft_version=1.21.2
|
minecraft_version=1.21.4
|
||||||
yarn_mappings=1.21.2+build.1
|
yarn_mappings=1.21.4+build.8
|
||||||
loader_version=0.16.14
|
loader_version=0.16.14
|
||||||
loom_version=1.10-SNAPSHOT
|
loom_version=1.10-SNAPSHOT
|
||||||
|
|
||||||
# Fabric API
|
# Fabric API
|
||||||
fabric_version=0.106.1+1.21.2
|
fabric_version=0.119.3+1.21.4
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.1.2+1.21.2
|
mod_version = 1.1.2+1.21.4
|
||||||
maven_group = ru.themixray
|
maven_group = ru.themixray
|
||||||
archives_base_name = repeating-mod
|
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)
|
@Mixin(KeyboardInput.class)
|
||||||
public abstract class InputMixin {
|
public abstract class InputMixin {
|
||||||
@Inject(at = @At(value = "TAIL"), method = "tick")
|
@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.me.is_replaying) {
|
||||||
if (Main.input_replay != null) {
|
if (Main.input_replay != null) {
|
||||||
Main.input_replay.inputCallback();
|
Main.input_replay.inputCallback();
|
||||||
|
@ -26,13 +26,18 @@ public class RecordListWidget extends ScrollableWidget {
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int getContentsHeightWithPadding() {
|
||||||
|
return !widgets.isEmpty() ? widgets.size() * 55 + (widgets.size() - 1) * 2 : 0;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected double getDeltaYPerScroll() {
|
protected double getDeltaYPerScroll() {
|
||||||
return 10;
|
return 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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;
|
int y = 0;
|
||||||
for (RecordWidget wid: widgets) {
|
for (RecordWidget wid: widgets) {
|
||||||
wid.setY(y);
|
wid.setY(y);
|
||||||
@ -63,11 +68,6 @@ public class RecordListWidget extends ScrollableWidget {
|
|||||||
return focused;
|
return focused;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected int getContentsHeight() {
|
|
||||||
return !widgets.isEmpty() ? widgets.size() * 55 + (widgets.size() - 1) * 2 : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void init(RepeatingScreen screen) {
|
public void init(RepeatingScreen screen) {
|
||||||
for (RecordWidget widget : widgets) {
|
for (RecordWidget widget : widgets) {
|
||||||
widget.init(screen);
|
widget.init(screen);
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.14.14",
|
"fabricloader": ">=0.14.14",
|
||||||
"fabric-api": "*",
|
"fabric-api": "*",
|
||||||
"minecraft": ">=1.21.2",
|
"minecraft": ">=1.21.4",
|
||||||
"java": ">=17"
|
"java": ">=17"
|
||||||
},
|
},
|
||||||
"suggests": {
|
"suggests": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user