mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
TypeConverter: fix using singleton to get its own context
I guess this must have been refactored from some other class?...
This commit is contained in:
parent
870d237260
commit
f2bdbb0c35
@ -184,8 +184,8 @@ class TypeConverter{
|
||||
//filter out useless noise in 1.13
|
||||
return null;
|
||||
}
|
||||
$old = TypeConverter::getInstance()->netItemStackToCore($action->oldItem);
|
||||
$new = TypeConverter::getInstance()->netItemStackToCore($action->newItem);
|
||||
$old = $this->netItemStackToCore($action->oldItem);
|
||||
$new = $this->netItemStackToCore($action->newItem);
|
||||
switch($action->sourceType){
|
||||
case NetworkInventoryAction::SOURCE_CONTAINER:
|
||||
if($action->windowId === ContainerIds::UI and $action->inventorySlot > 0){
|
||||
|
Loading…
x
Reference in New Issue
Block a user