Add Clientbound Block update
This commit is contained in:
1 parent
40fe40355f
commit
4562570f92
5 files changed
+32
-11
No files matched your search
@@ -48,21 +48,17 @@ impl Vec3 {
|
||||
z: self.z * z,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn mul(self, scalar: f64) -> Self {
|
||||
Vec3 {
|
||||
x: self.x * scalar,
|
||||
y: self.y * scalar,
|
||||
z: self.z * scalar,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Mul<f64> for Vec3 {
|
||||
type Output = Self;
|
||||
|
||||
fn mul(self, scalar: f64) -> Self {
|
||||
self.mul(scalar)
|
||||
Self {
|
||||
x: self.x * scalar,
|
||||
y: self.y * scalar,
|
||||
z: self.z * scalar,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user