item meta overflow fix

This commit is contained in:
GameHerobrine 2025-05-18 16:51:03 +03:00
parent c64d5eedbb
commit 659aea440d
4 changed files with 26 additions and 23 deletions

View file

@ -233,7 +233,7 @@ abstract class Block extends Position{
public function __construct($id, $meta = 0, $name = "Unknown"){
$this->id = (int) $id;
$this->meta = (int) $meta;
$this->meta = ((int) $meta) & 0xf;
$this->name = $name;
$this->breakTime = 0.20;
$this->hardness = 10;