mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 01:38:13 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user