mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-23 17:09:21 +00:00
2.0.5
This commit is contained in:
@@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = 'net.momirealms'
|
group = 'net.momirealms'
|
||||||
version = '2.0.4'
|
version = '2.0.5'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ import org.bukkit.event.HandlerList;
|
|||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.concurrent.ThreadLocalRandom;
|
import java.util.concurrent.ThreadLocalRandom;
|
||||||
|
|
||||||
@@ -215,6 +216,9 @@ public class CropManager extends Function {
|
|||||||
String id = customInterface.getItemID(item.getItemStack());
|
String id = customInterface.getItemID(item.getItemStack());
|
||||||
if (id == null) return;
|
if (id == null) return;
|
||||||
if (id.contains("_stage_")) item.remove();
|
if (id.contains("_stage_")) item.remove();
|
||||||
|
if (id.equals(BasicItemConfig.wetPot)) {
|
||||||
|
item.setItemStack(Objects.requireNonNull(customInterface.getItemStack(BasicItemConfig.dryPot)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onWorldLoad(World world) {
|
public void onWorldLoad(World world) {
|
||||||
|
|||||||
Reference in New Issue
Block a user