Add Clientbound Block update

This commit is contained in:
Snowiiii committed 2024-08-17 11:26:12 +02:00
1 parent 40fe40355f
commit 4562570f92
5 files changed
+32 -11

No files matched your search

+5 -9
View File
@@ -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,
}
}
}