zombies/skeletons/creepers should not spawn in blocks if only one block is free, mob limit is changeable in server.properties, small tweaks to entity hitboxes

This commit is contained in:
GameHerobrine 2023-01-17 20:01:15 +03:00
parent 9677196135
commit c2e069ef08
5 changed files with 15 additions and 12 deletions

View file

@ -28,7 +28,7 @@ class BucketItem extends Item{
if($block->getID() === AIR || ( $block instanceof WaterBlock && ($block->getMetadata() & 0x07) != 0x00 ) ){
$water = new WaterBlock();
$level->setBlock($block, $water, true, false, true);
$water->place(clone $this, $player, $block, $target, $face, $fx, $fy, $fz);
$water->place($this, $player, $block, $target, $face, $fx, $fy, $fz);
if(($player->gamemode & 0x01) === 0){
$this->meta = 0;
}