Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f3e80bac4 | ||
|
|
12016db5f2 | ||
|
|
e6b4636119 | ||
|
|
10a4c88d9b | ||
|
|
2bc02401b0 | ||
|
|
a071eba485 | ||
|
|
0dde5fa1eb | ||
|
|
f00d0171ae | ||
|
|
93a18d622b | ||
|
|
cfe0ec666f | ||
|
|
1b20ee94c4 | ||
|
|
f0fdd69260 | ||
|
|
6197a489b3 | ||
|
|
2fb8ba966a | ||
|
|
6a5d68cc84 |
@@ -3,17 +3,17 @@ org.gradle.jvmargs=-Xmx1G
|
|||||||
|
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://fabricmc.net/develop
|
# check these on https://fabricmc.net/develop
|
||||||
minecraft_version=1.19.3
|
minecraft_version=1.20.2
|
||||||
yarn_mappings=1.19.3+build.5
|
yarn_mappings=1.20.2+build.4
|
||||||
loader_version=0.14.13
|
loader_version=0.14.24
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.4.0
|
mod_version=1.4.1
|
||||||
maven_group = com.lizistired
|
maven_group=com.lizistired
|
||||||
archives_base_name = cave_dust
|
archives_base_name=cave_dust
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
fabric_version=0.72.0+1.19.3
|
fabric_version=0.90.7+1.20.2
|
||||||
clothconfig_version =9.0.94
|
clothconfig_version=12.0.10
|
||||||
modmenu_version =5.1.0-beta.3
|
modmenu_version=8.0.0-beta.2
|
||||||
kirin_version=1.13.2
|
kirin_version=1.16.0+1.20.2
|
||||||
|
|||||||
@@ -78,9 +78,9 @@ public class CaveDust implements ClientModInitializer {
|
|||||||
|
|
||||||
for (int i = 0; i < PARTICLE_AMOUNT; i++) {
|
for (int i = 0; i < PARTICLE_AMOUNT; i++) {
|
||||||
try {
|
try {
|
||||||
double x = client.player.getPos().getX() + generateRandomDouble(config.getDimensionsX() * -1, config.getDimensionsX());
|
int x = (int) (client.player.getPos().getX() + (int) generateRandomDouble(config.getDimensionsX() * -1, config.getDimensionsX()));
|
||||||
double y = client.player.getPos().getY() + generateRandomDouble(config.getDimensionsY() * -1, config.getDimensionsY());
|
int y = (int) (client.player.getPos().getY() + (int) generateRandomDouble(config.getDimensionsY() * -1, config.getDimensionsY()));
|
||||||
double z = client.player.getPos().getZ() + generateRandomDouble(config.getDimensionsZ() * -1, config.getDimensionsZ());
|
int z = (int) (client.player.getPos().getZ() + (int) generateRandomDouble(config.getDimensionsZ() * -1, config.getDimensionsZ()));
|
||||||
BlockPos particlePos = new BlockPos(x, y, z);
|
BlockPos particlePos = new BlockPos(x, y, z);
|
||||||
|
|
||||||
if (shouldParticlesSpawn(client, config, particlePos)) {
|
if (shouldParticlesSpawn(client, config, particlePos)) {
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package net.lizistired.cavedust;
|
|||||||
import com.minelittlepony.common.client.gui.GameGui;
|
import com.minelittlepony.common.client.gui.GameGui;
|
||||||
import com.minelittlepony.common.client.gui.element.*;
|
import com.minelittlepony.common.client.gui.element.*;
|
||||||
import net.lizistired.cavedust.utils.TranslatableTextHelper;
|
import net.lizistired.cavedust.utils.TranslatableTextHelper;
|
||||||
|
import net.minecraft.client.gui.DrawContext;
|
||||||
import net.minecraft.client.gui.screen.Screen;
|
import net.minecraft.client.gui.screen.Screen;
|
||||||
import net.minecraft.client.util.math.MatrixStack;
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
import net.minecraft.particle.ParticleEffect;
|
import net.minecraft.particle.ParticleEffect;
|
||||||
@@ -106,9 +107,9 @@ public class ModMenuConfigScreen extends GameGui {
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void render(MatrixStack matrices, int mouseX, int mouseY, float partialTicks) {
|
public void render(DrawContext context, int mouseX, int mouseY, float partialTicks) {
|
||||||
renderBackground(matrices);
|
renderBackground(context, mouseX, mouseY, partialTicks);
|
||||||
super.render(matrices, mouseX, mouseY, partialTicks);
|
super.render(context, mouseX, mouseY, partialTicks);
|
||||||
}
|
}
|
||||||
private String getNameOfParticle(){
|
private String getNameOfParticle(){
|
||||||
CaveDustConfig config = CaveDust.getInstance().getConfig();
|
CaveDustConfig config = CaveDust.getInstance().getConfig();
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.14.5",
|
"fabricloader": ">=0.14.5",
|
||||||
"fabric": "*",
|
"fabric": "*",
|
||||||
"minecraft": ">=1.19-beta.5",
|
"minecraft": "1.20.2",
|
||||||
"java": ">=17"
|
"java": ">=17"
|
||||||
},
|
},
|
||||||
"suggests": {
|
"suggests": {
|
||||||
|
|||||||
Reference in New Issue
Block a user