9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-27 02:49:11 +00:00

3.2.5.0-beta

This commit is contained in:
XiaoMoMi
2023-06-17 19:03:17 +08:00
parent 420960b1ff
commit 1856dc75b1
2 changed files with 5 additions and 2 deletions

View File

@@ -73,6 +73,7 @@ public class Pot implements Serializable {
whether to change block model
*/
public boolean reduceWater() {
if (water == 0) return false;
water--;
water = Math.max(0, water);
return water == 0;

View File

@@ -429,7 +429,7 @@ public class CCWorld extends Function {
Fertilizer fertilizer = pot.getFertilizer();
boolean wet = pot.isWet();
if (!wet && fertilizer == null) {
if (!wet && fertilizer == null && !ConfigManager.onlyInLoadedChunks) {
removePotData(simpleLocation);
}
@@ -454,7 +454,9 @@ public class CCWorld extends Function {
String replacer = wet ? potConfig.getWetPot(fertilizer) : potConfig.getDryPot(fertilizer);
String id = plugin.getPlatformInterface().getBlockID(block);
if (ConfigManager.enableCorruptionFixer && id.equals("NOTE_BLOCK")) {
plugin.getPlatformInterface().placeNoteBlock(location, replacer);
corruptedPot.put(simpleLocation, pot.getPotKey());
if (ConfigManager.debugCorruption) AdventureUtils.consoleMessage("[CustomCrops] Corrupted pot found at: " + simpleLocation);
//plugin.getPlatformInterface().placeNoteBlock(location, replacer);
return;
}
String potKey = plugin.getPotManager().getPotKeyByBlockID(id);