9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-28 03:19:15 +00:00
This commit is contained in:
XiaoMoMi
2024-03-17 15:57:06 +08:00
parent 18b05fd52b
commit b69f1866fc
4 changed files with 6 additions and 4 deletions

View File

@@ -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());
}

View File

@@ -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)));
}