mirror of
https://github.com/TeamMidnightDust/ThisRocks.git
synced 2025-12-15 10:45:10 +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 {
|
||||
maven { url "https://maven.terraformersmc.com/releases" }
|
||||
maven { url "https://jitpack.io" }
|
||||
flatDir {
|
||||
dirs 'local_maven'
|
||||
maven {
|
||||
url = "https://api.modrinth.com/maven"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,9 +30,9 @@ dependencies {
|
||||
|
||||
// Fabric API. This is technically optional, but you probably want it anyway.
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||
|
||||
modImplementation "eu.midnightdust:midnightlib:${midnightlib_version}"
|
||||
include "eu.midnightdust:midnightlib:${midnightlib_version}"
|
||||
|
||||
modImplementation "maven.modrinth:midnightlib:${midnightlib_version}"
|
||||
include "maven.modrinth:midnightlib:${midnightlib_version}"
|
||||
}
|
||||
|
||||
processResources {
|
||||
|
||||
@@ -8,11 +8,11 @@ org.gradle.jvmargs=-Xmx2G
|
||||
loader_version=0.11.7
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 1.5.0
|
||||
mod_version = 1.5.1
|
||||
maven_group = eu.midnightdust.motschen
|
||||
archives_base_name = rocks
|
||||
|
||||
# Dependencies
|
||||
# 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
|
||||
midnightlib_version=0.2.5
|
||||
midnightlib_version=0.2.6
|
||||
|
||||
@@ -61,7 +61,7 @@ public class Starfish extends Block implements Waterloggable {
|
||||
@Override
|
||||
public ItemStack getPickStack(BlockView world, BlockPos pos, BlockState state) {
|
||||
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());
|
||||
return stack;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user