forked from 2009Scape/Server
Fixed a construction bug where rooms built off of a south-facing door with a southern orientation were not getting rotated after being built
This commit is contained in:
parent
e67ca4948b
commit
9ea32d07eb
1 changed files with 9 additions and 1 deletions
|
|
@ -109,7 +109,15 @@ public class BuildRegionChunk extends RegionChunk {
|
|||
}
|
||||
}
|
||||
clear();
|
||||
rotation = (direction.toInteger() + (direction.toInteger() % 2 == 0 ? 2 : 0)) % 4;
|
||||
switch(direction) {
|
||||
case NORTH: rotation = 0; break;
|
||||
case EAST: rotation = 1; break;
|
||||
case SOUTH: rotation = 2; break;
|
||||
case WEST: rotation = 3; break;
|
||||
default: rotation = (direction.toInteger() + (direction.toInteger() % 2 == 0 ? 2 : 0)) % 4;
|
||||
log(this.getClass(), Log.ERR, "Attempted to rotate a chunk in a non-cardinal direction - using fallback rotation code. This should be investigated!");
|
||||
break;
|
||||
};
|
||||
for (int i = 0; i < objects.length; i++) {
|
||||
for (int x = 0; x < SIZE; x++) {
|
||||
for (int y = 0; y < SIZE; y++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue