mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-28 03:19:15 +00:00
bug fixs
This commit is contained in:
@@ -374,7 +374,7 @@ public class CChunk implements CustomCropsChunk {
|
||||
CustomCropsBlock previous = addBlockAt(scarecrow, location);
|
||||
if (previous != null) {
|
||||
if (previous instanceof WorldScarecrow) {
|
||||
CustomCropsPlugin.get().debug("Found duplicated glass data when adding scarecrow at " + location);
|
||||
CustomCropsPlugin.get().debug("Found duplicated scarecrow data when adding scarecrow at " + location);
|
||||
} else {
|
||||
CustomCropsPlugin.get().debug("Found unremoved data when adding scarecrow at " + location + ". Previous type is " + previous.getType().name());
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ import com.google.gson.Gson;
|
||||
import net.momirealms.customcrops.api.CustomCropsPlugin;
|
||||
import net.momirealms.customcrops.api.manager.ConfigManager;
|
||||
import net.momirealms.customcrops.api.manager.WorldManager;
|
||||
import net.momirealms.customcrops.api.mechanic.item.ItemType;
|
||||
import net.momirealms.customcrops.api.mechanic.world.*;
|
||||
import net.momirealms.customcrops.api.mechanic.world.level.CustomCropsChunk;
|
||||
import net.momirealms.customcrops.api.mechanic.world.level.CustomCropsWorld;
|
||||
@@ -292,8 +293,9 @@ public class BukkitWorldAdaptor extends AbstractWorldAdaptor {
|
||||
blockMap.put(chunkPos, new MemoryScarecrow(chunkPos.getLocation(world, coordinate), new CompoundMap(data)));
|
||||
}
|
||||
}
|
||||
case "GLASS" -> {
|
||||
case "GREENHOUSE" -> {
|
||||
for (int pos : (int[]) block.get("pos").getValue()) {
|
||||
System.out.println("you");
|
||||
ChunkPos chunkPos = new ChunkPos(pos);
|
||||
blockMap.put(chunkPos, new MemoryGlass(chunkPos.getLocation(world, coordinate), new CompoundMap(data)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user