mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-02-09 03:34:59 +01:00
Merge branch '1.20.1/dev' into 1.21.1/dev
This commit is contained in:
commit
c157389257
2 changed files with 11 additions and 4 deletions
|
@ -250,10 +250,9 @@ public class LightStorage implements Effect {
|
|||
for (int x = -1; x < 17; x++) {
|
||||
blockPos.set(xMin + x, yMin + y, zMin + z);
|
||||
|
||||
boolean isFullBlock = level.getBlockState(blockPos)
|
||||
.isCollisionShapeFullBlock(level, blockPos);
|
||||
var blockState = level.getBlockState(blockPos);
|
||||
|
||||
if (isFullBlock) {
|
||||
if (blockState.canOcclude() && blockState.isCollisionShapeFullBlock(level, blockPos)) {
|
||||
bitSet.set(index);
|
||||
}
|
||||
|
||||
|
|
|
@ -99,8 +99,16 @@ public interface Rotate<Self extends Rotate<Self>> {
|
|||
};
|
||||
}
|
||||
|
||||
default Self rotateTo(float fromX, float fromY, float fromZ, float toX, float toY, float toZ) {
|
||||
return rotate(new Quaternionf().rotateTo(fromX, fromY, fromZ, toX, toY, toZ));
|
||||
}
|
||||
|
||||
default Self rotateTo(Vector3fc from, Vector3fc to) {
|
||||
return rotate(new Quaternionf().rotateTo(from, to));
|
||||
return rotateTo(from.x(), from.y(), from.z(), to.x(), to.y(), to.z());
|
||||
}
|
||||
|
||||
default Self rotateTo(Direction from, Direction to) {
|
||||
return rotateTo(from.getStepX(), from.getStepY(), from.getStepZ(), to.getStepX(), to.getStepY(), to.getStepZ());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
|
Loading…
Reference in a new issue