mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
3 small fixes
This commit is contained in:
parent
7768ad03a9
commit
39bfa7115d
5 changed files with 23 additions and 2 deletions
|
|
@ -408,7 +408,7 @@ class Entity extends Position
|
|||
$endZ = ceil($this->boundingBox->maxZ);
|
||||
$waterDone = false;
|
||||
//$bup = new AxisAlignedBB($startX, $startY + 1, $startZ, $endX, $endY, $endZ);
|
||||
if(!($this instanceof Painting)){ //TODO better way to fix
|
||||
if(!($this instanceof Painting) && !($this->isPlayer() && $this->player->isSleeping !== false)){ //TODO better way to fix
|
||||
for($i = 0; $i < 8; ++$i){
|
||||
$x = ((($i >> 0) % 2) - 0.5) * $this->width * 0.8;
|
||||
$y= ((($i >> 1) % 2) - 0.5) * 0.1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue