This commit is contained in:
not randomguy 2026-11-11 21:15:43 +08:00 • committed by GitHub
commit 0a620ede1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 1153 additions and 723 deletions

View file

@ -1078,7 +1078,7 @@ class Entity extends Position
public function interactWith(Entity $e, $action)
{
if($this->isPlayer() and ($this->server->api->getProperty("pvp") == false or $this->server->difficulty <= 0 or ($this->player->gamemode & 0x01) === 0x01)){
if($this->isPlayer() and ($this->level->getProperty("pvp") == false or $this->server->difficulty <= 0 or ($this->player->gamemode & 0x01) === 0x01)){
return false;
}