mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Fikser sjekk av rotert tekstur for partikler
This commit is contained in:
parent
86edea6c11
commit
f1ddf7847d
@ -126,7 +126,7 @@ public final class IOUtil {
|
|||||||
direction = wall.getDirection();
|
direction = wall.getDirection();
|
||||||
} else if (element.getClass().isAssignableFrom(Particle.class)) {
|
} else if (element.getClass().isAssignableFrom(Particle.class)) {
|
||||||
Particle particle = (Particle) element;
|
Particle particle = (Particle) element;
|
||||||
hasRotatedTexture = true;
|
hasRotatedTexture = TextureConverterUtil.hasRotatedTexture(particle);
|
||||||
direction = particle.getDirection();
|
direction = particle.getDirection();
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException("Unknown element type passed to function.");
|
throw new IllegalArgumentException("Unknown element type passed to function.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user