mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-13 05:54:01 +01:00
Merge branch 'dev' into shader-pipeline
This commit is contained in:
commit
5b63d36ab0
@ -33,6 +33,7 @@ public class AtlasStitcher {
|
|||||||
.equals(PlayerContainer.BLOCK_ATLAS_TEXTURE))
|
.equals(PlayerContainer.BLOCK_ATLAS_TEXTURE))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
sprites.forEach(StitchedSprite::reset);
|
||||||
sprites.stream()
|
sprites.stream()
|
||||||
.map(StitchedSprite::getLoc)
|
.map(StitchedSprite::getLoc)
|
||||||
.forEach(event::addSprite);
|
.forEach(event::addSprite);
|
||||||
|
@ -11,7 +11,7 @@ public class StitchedSprite {
|
|||||||
|
|
||||||
TextureAtlasSprite sprite;
|
TextureAtlasSprite sprite;
|
||||||
|
|
||||||
public StitchedSprite(ResourceLocation loc) {
|
StitchedSprite(ResourceLocation loc) {
|
||||||
this.loc = loc;
|
this.loc = loc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -28,4 +28,8 @@ public class StitchedSprite {
|
|||||||
|
|
||||||
return sprite;
|
return sprite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void reset() {
|
||||||
|
sprite = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user