Fix calculate patterns.
This commit is contained in:
parent
24acf8855f
commit
25fb3113fa
|
@ -367,7 +367,7 @@ void Item::calculatePatterns(int& xPattern, int& yPattern, int& zPattern)
|
|||
|
||||
xPattern = (color % 4) % getNumPatternX();
|
||||
yPattern = (color / 4) % getNumPatternY();
|
||||
} else if(isGround() || isOnBottom()) {
|
||||
} else {
|
||||
xPattern = m_position.x % getNumPatternX();
|
||||
yPattern = m_position.y % getNumPatternY();
|
||||
zPattern = m_position.z % getNumPatternZ();
|
||||
|
|
Loading…
Reference in New Issue