simplify survival, map and plugin code: map palette built once in a static initializer instead of a synchronized check per dither lookup, film colour as a constant, one blit for blank film and develop, shared crafting result for prepare and craft, unused photo scan state and dead null checks removed, non-italic text helper for item names, pdc getOrDefault, private map file paths, single map-init attach path, listener registration in one loop, unused image constructor removed (pptest dithers itself), comments trimmed

This commit is contained in:
MineTec committed 2026-11-05 02:28:46 +01:00
1 parent 44f2b3c59c
commit b242adb6d2
13 files changed
+209 -378

No files matched your search

+1 -1
View File
@@ -2071,7 +2071,7 @@ public class PPTest extends JavaPlugin {
g.fillRect(48, 56, 32, 12);
g.dispose();
org.bukkit.map.MapView v = Bukkit.createMap(w);
eu.mhsl.minecraft.pixelpics.utils.MapManager.attachView(v, new eu.mhsl.minecraft.pixelpics.utils.ImageMapRenderer(img));
eu.mhsl.minecraft.pixelpics.utils.MapManager.attachView(v, new eu.mhsl.minecraft.pixelpics.utils.ImageMapRenderer(eu.mhsl.minecraft.pixelpics.utils.MapImageDither.dither(img)));
return synthMap = mapItem(v);
}