mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Fixed creative crash when opening chests
This commit is contained in:
parent
700314d75a
commit
82f2a0f2f8
1 changed files with 3 additions and 0 deletions
|
|
@ -232,6 +232,9 @@ class BlockAPI{
|
||||||
if(isset(Material::$activable[$target[0]])){
|
if(isset(Material::$activable[$target[0]])){
|
||||||
switch($target[0]){
|
switch($target[0]){
|
||||||
case 54:
|
case 54:
|
||||||
|
if($this->server->gamemode === 1){
|
||||||
|
break;
|
||||||
|
}
|
||||||
$this->server->api->player->getByEID($data["eid"])->dataPacket(MC_CONTAINER_OPEN, array(
|
$this->server->api->player->getByEID($data["eid"])->dataPacket(MC_CONTAINER_OPEN, array(
|
||||||
"windowid" => 1,
|
"windowid" => 1,
|
||||||
"type" => WINDOW_CHEST,
|
"type" => WINDOW_CHEST,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue