update to 1.16.5

This commit is contained in:
jane 2021-03-06 19:14:42 -05:00
parent 2ea888ecaa
commit 0ffbbd129b
2 changed files with 10 additions and 10 deletions

View file

@ -3,15 +3,15 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/use # check these on https://fabricmc.net/use
minecraft_version=1.16.4 minecraft_version=1.16.5
yarn_mappings=1.16.4+build.7 yarn_mappings=1.16.5+build.5
loader_version=0.10.8 loader_version=0.11.2
# Mod Properties # Mod Properties
mod_version = 0.1.6 mod_version = 0.2.0.0-SNAPSHOT
maven_group = pm.j4 maven_group = pm.j4
archives_base_name = kerosene archives_base_name = kerosene
# Dependencies # Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_version=0.28.1+1.16 fabric_version=0.31.0+1.16

View file

@ -96,8 +96,8 @@ public class PModuleConfigurationWidget extends AlwaysSelectedEntryListWidget<PO
} }
@Override @Override
protected boolean isSelectedItem(int index) { protected boolean isSelectedEntry(int index) {
return super.isSelectedItem(index); return super.isSelectedEntry(index);
} }
@Override @Override
@ -127,7 +127,7 @@ public class PModuleConfigurationWidget extends AlwaysSelectedEntryListWidget<PO
@Override @Override
protected void renderList(MatrixStack matrices, int x, int y, int mouseX, int mouseY, float delta) { protected void renderList(MatrixStack matrices, int x, int y, int mouseX, int mouseY, float delta) {
int itemCount = this.getItemCount(); int itemCount = this.getEntryCount();
Tessellator t_1 = Tessellator.getInstance(); Tessellator t_1 = Tessellator.getInstance();
BufferBuilder buffer = t_1.getBuffer(); BufferBuilder buffer = t_1.getBuffer();
@ -139,7 +139,7 @@ public class PModuleConfigurationWidget extends AlwaysSelectedEntryListWidget<PO
POptionEntry entry = this.getEntry(index); POptionEntry entry = this.getEntry(index);
int rowWidth = this.getRowWidth(); int rowWidth = this.getRowWidth();
int entryLeft; int entryLeft;
if (((EntryListWidgetAccessor) this).isRenderSelection() && this.isSelectedItem(index)) { if (((EntryListWidgetAccessor) this).isRenderSelection() && this.isSelectedEntry(index)) {
entryLeft = getRowLeft() - 2 + entry.getXOffset(); entryLeft = getRowLeft() - 2 + entry.getXOffset();
int selectionRight = x + rowWidth + 2; int selectionRight = x + rowWidth + 2;
RenderSystem.disableTexture(); RenderSystem.disableTexture();
@ -221,7 +221,7 @@ public class PModuleConfigurationWidget extends AlwaysSelectedEntryListWidget<PO
x >= (double) getRowLeft() && x >= (double) getRowLeft() &&
x <= (double) (getRowLeft() + getRowWidth()) && x <= (double) (getRowLeft() + getRowWidth()) &&
index >= 0 && i >= 0 && index >= 0 && i >= 0 &&
index < this.getItemCount() ? this.children().get(index) : null; index < this.getEntryCount() ? this.children().get(index) : null;
} }
@Override @Override