mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
item meta overflow fix
This commit is contained in:
parent
c64d5eedbb
commit
659aea440d
4 changed files with 26 additions and 23 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue