Merge pull request #74 from Sunch233/master

fixed some bug
This commit is contained in:
for(int i = 0;i 100; ++i){EntityPlayer p = mc.thePlayer; mc.getSendQueue().addToSendQueue(new Packet11PlayerPosition(p.posX + 0.15*i, p.boundingBox.minY, p.posY, p.posZ + 0.15*i, true)); mc.getSendQueue().addToSendQueue(new Packet19EntityAction(p, 3));} 2026-06-06 20:29:16 +03:00 • committed by GitHub
commit 38de7f2042
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View file

@ -1379,10 +1379,11 @@ class Player{
}
public function makeInvisibleForAllPlayers(){
foreach($this->server->api->player->getA as $player){
foreach($this->server->api->player->getAll() as $player){
if($player->CID != $this->CID) $this->setInvisibleFor($player, true);
}
}
public function getGamemode(){
switch($this->gamemode){
case SURVIVAL:

View file

@ -29,7 +29,7 @@ class SlabBlock extends TransparentBlock{
[$id, $meta] = $level->level->getBlock($x, $y, $z);
if($meta & 0x08 == 0x08){
if(($meta & 0x08) == 0x08){
StaticBlock::setBlockBounds($id, 0, 0, 0, 1, 1, 1);
}else{
$bottom = (($meta ^ 8) >> 3) & 1;

View file

@ -25,7 +25,7 @@ class WoodSlabBlock extends TransparentBlock{
[$id, $meta] = $level->level->getBlock($x, $y, $z);
if($meta & 0x08 == 0x08){
if(($meta & 0x08) == 0x08){
StaticBlock::setBlockBounds($id, 0, 0, 0, 1, 1, 1);
}else{
$bottom = (($meta ^ 8) >> 3) & 1;