fixed inability to collect entity drop, fixed player not getting damage while standing on cactus, tweaked some other stuff

This commit is contained in:
GameHerobrine 2024-11-23 05:35:41 +03:00
parent 46efebaf67
commit 19a4008543
6 changed files with 11 additions and 10 deletions

View file

@ -82,7 +82,7 @@ class Level{
return true;
}
// TODO neccessary for projectiles
public function rayTraceBlocks(Vector3 $start, Vector3 $end){
$par3 = false; //TODO move to params?

View file

@ -39,7 +39,6 @@ class ClayFeature
$d6 = (($i4 + 0.5) - $d3) / ($sin3 / 2);
if(($d4*$d4)+($d5*$d5)+($d6*$d6)<1 && $level->level->getBlockID($i2, $i3, $i4) == SAND){
$level->level->setBlockID($i2, $i3, $i4, $clayid);
console("Placed clay at".$i2.":".$i4);
}
}
}