mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Add missing setValue() override to LongTag
why did this take two commits ;-;
This commit is contained in:
parent
51906daad0
commit
2e73fd7f8c
@ -57,4 +57,16 @@ class LongTag extends NamedTag{
|
||||
public function &getValue() : int{
|
||||
return parent::getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $value
|
||||
*
|
||||
* @throws \TypeError
|
||||
*/
|
||||
public function setValue($value) : void{
|
||||
if(!is_int($value)){
|
||||
throw new \TypeError("LongTag value must be of type int, " . gettype($value) . " given");
|
||||
}
|
||||
parent::setValue($value);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user