Fix updating empty LODs (IE in the end)

This commit is contained in:
James Seibel
2024-03-16 22:27:11 -05:00
parent 69e3e2bca3
commit c435b55576
@@ -254,10 +254,9 @@ public class FullDataSourceV2 implements IDataSource<IDhLevel>
public boolean update(FullDataSourceV2 inputDataSource, @Nullable IDhLevel level) { return this.update(inputDataSource); }
public boolean update(FullDataSourceV2 inputDataSource)
{
// shouldn't happen, but James saw it happen once
if (inputDataSource.mapping.getMaxValidId() == 0)
{
LOGGER.warn("Invalid mapping given from input update data source at pos: ["+inputDataSource.pos+"], skipping update.");
// can happen in the end or where empty chunks exist
return false;
}