mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
commit
38de7f2042
3 changed files with 4 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue