mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
more php 8.2 tweaks
This commit is contained in:
parent
6d89c50e43
commit
332252bacb
4 changed files with 4 additions and 4 deletions
|
|
@ -145,7 +145,7 @@ class NBT_new{
|
||||||
$tag->read($this);
|
$tag->read($this);
|
||||||
break;
|
break;
|
||||||
case NBT::TAG_Enum:
|
case NBT::TAG_Enum:
|
||||||
$tag = new Enum($this->getString());
|
$tag = new EnumTag($this->getString());
|
||||||
$tag->read($this);
|
$tag->read($this);
|
||||||
break;
|
break;
|
||||||
case NBT::TAG_Compound:
|
case NBT::TAG_Compound:
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Enum extends NamedTag implements \ArrayAccess, \Countable{
|
class EnumTag extends NamedTag implements \ArrayAccess, \Countable{
|
||||||
|
|
||||||
private $tagType;
|
private $tagType;
|
||||||
|
|
||||||
|
|
@ -26,7 +26,7 @@ abstract class NamedTag extends Tag{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param bool|float|double|int|byte|short|array|Compound|Enum|string $value
|
* @param bool|float|double|int|byte|short|array|Compound|EnumTag|string $value
|
||||||
*/
|
*/
|
||||||
public function __construct($name = "", $value = false){
|
public function __construct($name = "", $value = false){
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue