mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +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="";
|
oldMapId="";
|
||||||
Array<Sprite> textureAtlas = Config.instance().getAtlas(this.data.spriteAtlas).createSprites(this.data.sprite);
|
Array<Sprite> textureAtlas = Config.instance().getAtlas(this.data.spriteAtlas).createSprites(this.data.sprite);
|
||||||
sprite = textureAtlas.get(spriteIndex);
|
sprite = textureAtlas.get(spriteIndex % textureAtlas.size);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user