Merge branch 'master' into 'master'

Prevent loading sprites that are out of bonds in Adventure.

See merge request core-developers/forge!6476
This commit is contained in:
Anthony Calosa
2022-04-03 00:28:51 +00:00

View File

@@ -28,7 +28,7 @@ public class PointOfInterest implements SaveFileContent {
oldMapId="";
Array<Sprite> textureAtlas = Config.instance().getAtlas(this.data.spriteAtlas).createSprites(this.data.sprite);
sprite = textureAtlas.get(spriteIndex);
sprite = textureAtlas.get(spriteIndex % textureAtlas.size);
}
@Override