mirror of
https://github.com/tiennm99/WPlace-AutoBOT.git
synced 2026-10-17 10:13:58 +00:00
been a while since last update
This commit is contained in:
1 parent
8f5cb1ad79
commit
dd0cad69e6
8 files changed
+11377
-10888
No files matched your search
+11301
-10853
File diff suppressed because it is too large.
Load diff
@@ -149,6 +149,7 @@ class OverlayManager {
|
||||
|
||||
// Method 2: Force browser to bypass cache by adding cache-busting parameter
|
||||
// We need to intercept and modify tile requests to add cache-busting
|
||||
// IMPORTANT: Preserve any existing fetch override (e.g., from Auto-Image assist mode)
|
||||
const originalFetch = window.fetch;
|
||||
let fetchOverrideActive = true;
|
||||
|
||||
@@ -167,6 +168,7 @@ class OverlayManager {
|
||||
}
|
||||
}
|
||||
|
||||
// Chain to previous fetch (which may have assist mode logic)
|
||||
return originalFetch.apply(this, args);
|
||||
};
|
||||
|
||||
|
||||
@@ -1165,6 +1165,13 @@ class WPlaceUtilsManager {
|
||||
|
||||
try {
|
||||
console.log('🔄 Restoring overlay from saved data...');
|
||||
console.log('📊 Pixel data info:', {
|
||||
width: window.state.imageData.width,
|
||||
height: window.state.imageData.height,
|
||||
pixelCount: window.state.imageData.pixels?.length,
|
||||
firstPixels: window.state.imageData.pixels?.slice(0, 12), // First 3 pixels (RGBA)
|
||||
isProcessed: '⚠️ These should be PROCESSED pixels if saved after processing'
|
||||
});
|
||||
|
||||
// Recreate ImageBitmap from loaded pixel data (match old version exactly)
|
||||
const imageData = new ImageData(
|
||||
|
||||
Reference in new issue
Block a user