mirror of
https://github.com/TeamMidnightDust/ThisRocks.git
synced 2025-12-15 18:55:08 +01:00
ThisRocks! 1.5.1 - Fix crash when picking Starfish
This commit is contained in:
10
build.gradle
10
build.gradle
@@ -17,8 +17,8 @@ minecraft {
|
|||||||
repositories {
|
repositories {
|
||||||
maven { url "https://maven.terraformersmc.com/releases" }
|
maven { url "https://maven.terraformersmc.com/releases" }
|
||||||
maven { url "https://jitpack.io" }
|
maven { url "https://jitpack.io" }
|
||||||
flatDir {
|
maven {
|
||||||
dirs 'local_maven'
|
url = "https://api.modrinth.com/maven"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,9 +30,9 @@ dependencies {
|
|||||||
|
|
||||||
// Fabric API. This is technically optional, but you probably want it anyway.
|
// Fabric API. This is technically optional, but you probably want it anyway.
|
||||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||||
|
|
||||||
modImplementation "eu.midnightdust:midnightlib:${midnightlib_version}"
|
modImplementation "maven.modrinth:midnightlib:${midnightlib_version}"
|
||||||
include "eu.midnightdust:midnightlib:${midnightlib_version}"
|
include "maven.modrinth:midnightlib:${midnightlib_version}"
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ org.gradle.jvmargs=-Xmx2G
|
|||||||
loader_version=0.11.7
|
loader_version=0.11.7
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.5.0
|
mod_version = 1.5.1
|
||||||
maven_group = eu.midnightdust.motschen
|
maven_group = eu.midnightdust.motschen
|
||||||
archives_base_name = rocks
|
archives_base_name = rocks
|
||||||
|
|
||||||
# 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.40.1+1.17
|
fabric_version=0.40.1+1.17
|
||||||
midnightlib_version=0.2.5
|
midnightlib_version=0.2.6
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ public class Starfish extends Block implements Waterloggable {
|
|||||||
@Override
|
@Override
|
||||||
public ItemStack getPickStack(BlockView world, BlockPos pos, BlockState state) {
|
public ItemStack getPickStack(BlockView world, BlockPos pos, BlockState state) {
|
||||||
ItemStack stack = new ItemStack(this);
|
ItemStack stack = new ItemStack(this);
|
||||||
stack.getNbt().putString("variation", state.get(STARFISH_VARIATION).asString());
|
stack.getOrCreateNbt().putString("variation", state.get(STARFISH_VARIATION).asString());
|
||||||
LOGGER.info(state.get(STARFISH_VARIATION).asString());
|
LOGGER.info(state.get(STARFISH_VARIATION).asString());
|
||||||
return stack;
|
return stack;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user