mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-19 15:09:25 +00:00
Merge pull request #56 from Catnies/dev-catnies
Fix sprinkler option 3D-item-with-water not work.
This commit is contained in:
@@ -209,7 +209,7 @@ public class SprinklerBlock extends AbstractCustomCropsBlock {
|
|||||||
context.arg(ContextKeys.CURRENT_WATER, currentWater);
|
context.arg(ContextKeys.CURRENT_WATER, currentWater);
|
||||||
context.arg(ContextKeys.WATER_BAR, Optional.ofNullable(config.waterBar()).map(it -> it.getWaterBar(currentWater, config.storage())).orElse(""));
|
context.arg(ContextKeys.WATER_BAR, Optional.ofNullable(config.waterBar()).map(it -> it.getWaterBar(currentWater, config.storage())).orElse(""));
|
||||||
if (addWater(state, config, method.amountOfWater()) && !config.threeDItem().equals(config.threeDItemWithWater())) {
|
if (addWater(state, config, method.amountOfWater()) && !config.threeDItem().equals(config.threeDItemWithWater())) {
|
||||||
updateBlockAppearance(location, config, false);
|
updateBlockAppearance(location, config, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
method.triggerActions(context);
|
method.triggerActions(context);
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ repositories {
|
|||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(project(":api"))
|
compileOnly(project(":api"))
|
||||||
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
|
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
|
||||||
compileOnly("net.momirealms:craft-engine-core:0.0.54.6")
|
compileOnly("net.momirealms:craft-engine-core:0.0.57")
|
||||||
compileOnly("net.momirealms:craft-engine-bukkit:0.0.54.6")
|
compileOnly("net.momirealms:craft-engine-bukkit:0.0.57")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<JavaCompile> {
|
tasks.withType<JavaCompile> {
|
||||||
|
|||||||
Reference in New Issue
Block a user