Merge branch 'main' into 'main'

Fix wrong position being calculated and used for block colors (and possibly other things).

See merge request jeseibel/distant-horizons-core!14
This commit is contained in:
James Seibel
2023-08-18 03:05:11 +00:00
@@ -226,8 +226,8 @@ public class FullDataToRenderDataTransformer
int hash = columnArrayView.getDataHash();
SingleColumnFullDataAccessor fullArrayView = chunkDataView.get(ox * dataToSourceScale, oz * dataToSourceScale);
convertColumnData(level,
sourceBlockX + sourceDataPointBlockWidth * relSourceX * dataToSourceScale,
sourceBlockZ + sourceDataPointBlockWidth * relSourceZ * dataToSourceScale,
sourceBlockX + sourceDataPointBlockWidth * relSourceX,
sourceBlockZ + sourceDataPointBlockWidth * relSourceZ,
columnArrayView, fullArrayView, 2);
changed |= hash != columnArrayView.getDataHash();
}