implement swing arm animation and entity brightness
(cherry picked from commit b9e76a3d9bd1c0c89f1ffde1a3516ff115cf3235)
This commit is contained in:
@@ -10,7 +10,7 @@ window.BoundingBox = class {
|
||||
* @param maxY Maximum y side
|
||||
* @param maxZ Maximum z side
|
||||
*/
|
||||
constructor(minX, minY, minZ, maxX, maxY, maxZ) {
|
||||
constructor(minX = 0, minY = 0, minZ = 0, maxX = 0, maxY = 0, maxZ = 0) {
|
||||
this.epsilon = 0.0;
|
||||
|
||||
this.minX = minX;
|
||||
|
||||
@@ -3,7 +3,7 @@ window.MathHelper = class {
|
||||
/**
|
||||
* Returns the greatest integer less than or equal to the double argument
|
||||
*/
|
||||
static floor_double(value) {
|
||||
static floor(value) {
|
||||
let i = parseInt(value);
|
||||
return value < i ? i - 1 : i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user