Update to 1.19.4
This commit is contained in:
parent
9f5df05202
commit
9251163a02
@ -2,13 +2,13 @@
|
|||||||
org.gradle.jvmargs=-Xmx1G
|
org.gradle.jvmargs=-Xmx1G
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://modmuss50.me/fabric.html
|
# check these on https://modmuss50.me/fabric.html
|
||||||
minecraft_version=1.19.3
|
minecraft_version=1.19.4
|
||||||
yarn_mappings=1.19.3+build.2
|
yarn_mappings=1.19.4+build.1
|
||||||
loader_version=0.14.11
|
loader_version=0.14.17
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=1.2.3
|
mod_version=1.2.4
|
||||||
maven_group=semmiedev
|
maven_group=semmiedev
|
||||||
archives_base_name=disc_jockey
|
archives_base_name=disc_jockey
|
||||||
# Dependencies
|
# Dependencies
|
||||||
# check this on https://modmuss50.me/fabric.html
|
# check this on https://modmuss50.me/fabric.html
|
||||||
fabric_version=0.68.1+1.19.3
|
fabric_version=0.76.0+1.19.4
|
||||||
|
@ -70,7 +70,8 @@ public class SongPlayer implements ClientTickEvents.StartWorldTick {
|
|||||||
for (int x = -7; x <= 7; x++) {
|
for (int x = -7; x <= 7; x++) {
|
||||||
for (int y = -7; y <= 7; y++) {
|
for (int y = -7; y <= 7; y++) {
|
||||||
for (int z = -7; z <= 7; z++) {
|
for (int z = -7; z <= 7; z++) {
|
||||||
BlockPos blockPos = new BlockPos(playerPos.add(x, y, z));
|
Vec3d vec3d = playerPos.add(x, y, z);
|
||||||
|
BlockPos blockPos = new BlockPos(MathHelper.floor(vec3d.x), MathHelper.floor(vec3d.y), MathHelper.floor(vec3d.z));
|
||||||
if (intersect(playerPos, MinecraftClient.getInstance().interactionManager.getReachDistance(), BOX.offset(blockPos))) {
|
if (intersect(playerPos, MinecraftClient.getInstance().interactionManager.getReachDistance(), BOX.offset(blockPos))) {
|
||||||
BlockState blockState = world.getBlockState(blockPos);
|
BlockState blockState = world.getBlockState(blockPos);
|
||||||
if (blockState.isOf(Blocks.NOTE_BLOCK) && world.isAir(blockPos.up())) {
|
if (blockState.isOf(Blocks.NOTE_BLOCK) && world.isAir(blockPos.up())) {
|
||||||
|
@ -66,7 +66,7 @@ public class SongListWidget extends EntryListWidget<SongListWidget.SongEntry> {
|
|||||||
fill(matrices, x + 1, y + 1, x + entryWidth - 1, y + entryHeight - 1, 0x000000);
|
fill(matrices, x + 1, y + 1, x + entryWidth - 1, y + entryHeight - 1, 0x000000);
|
||||||
}
|
}
|
||||||
|
|
||||||
drawCenteredText(matrices, client.textRenderer, song.displayName, x + entryWidth / 2, y + 5, selected ? 0xFFFFFF : 0x808080);
|
drawCenteredTextWithShadow(matrices, client.textRenderer, song.displayName, x + entryWidth / 2, y + 5, selected ? 0xFFFFFF : 0x808080);
|
||||||
|
|
||||||
RenderSystem.setShaderTexture(0, ICONS);
|
RenderSystem.setShaderTexture(0, ICONS);
|
||||||
drawTexture(matrices, x + 2, y + 2, (favorite ? 26 : 0) + (isOverFavoriteButton(mouseX, mouseY) ? 13 : 0), 0, 13, 12, 52, 12);
|
drawTexture(matrices, x + 2, y + 2, (favorite ? 26 : 0) + (isOverFavoriteButton(mouseX, mouseY) ? 13 : 0), 0, 13, 12, 52, 12);
|
||||||
|
@ -26,11 +26,11 @@ public class BlocksOverlay {
|
|||||||
ItemRenderer itemRenderer = client.getItemRenderer();
|
ItemRenderer itemRenderer = client.getItemRenderer();
|
||||||
|
|
||||||
textRenderer.draw(matrices, " × "+amountOfNoteBlocks, 26, 13, 0xFFFFFF);
|
textRenderer.draw(matrices, " × "+amountOfNoteBlocks, 26, 13, 0xFFFFFF);
|
||||||
itemRenderer.renderInGui(NOTE_BLOCK, 6, 6);
|
itemRenderer.renderInGui(matrices, NOTE_BLOCK, 6, 6);
|
||||||
|
|
||||||
for (int i = 0; i < itemStacks.length; i++) {
|
for (int i = 0; i < itemStacks.length; i++) {
|
||||||
textRenderer.draw(matrices, " × "+amounts[i], 26, 13 + 20 * (i + 1), 0xFFFFFF);
|
textRenderer.draw(matrices, " × "+amounts[i], 26, 13 + 20 * (i + 1), 0xFFFFFF);
|
||||||
itemRenderer.renderInGui(itemStacks[i], 6, 6 + 20 * (i + 1));
|
itemRenderer.renderInGui(matrices, itemStacks[i], 6, 6 + 20 * (i + 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -132,8 +132,8 @@ public class DiscJockeyScreen extends Screen {
|
|||||||
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta) {
|
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta) {
|
||||||
super.render(matrices, mouseX, mouseY, delta);
|
super.render(matrices, mouseX, mouseY, delta);
|
||||||
|
|
||||||
drawCenteredText(matrices, textRenderer, DROP_HINT, width / 2, 5, 0xFFFFFF);
|
drawCenteredTextWithShadow(matrices, textRenderer, DROP_HINT, width / 2, 5, 0xFFFFFF);
|
||||||
drawCenteredText(matrices, textRenderer, SELECT_SONG, width / 2, 20, 0xFFFFFF);
|
drawCenteredTextWithShadow(matrices, textRenderer, SELECT_SONG, width / 2, 20, 0xFFFFFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabric": "*",
|
"fabric": "*",
|
||||||
"minecraft": "1.19.3",
|
"minecraft": "1.19.4",
|
||||||
"modmenu": "*"
|
"modmenu": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user