mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-30 06:55:11 +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
|
//filter out useless noise in 1.13
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$old = TypeConverter::getInstance()->netItemStackToCore($action->oldItem);
|
$old = $this->netItemStackToCore($action->oldItem);
|
||||||
$new = TypeConverter::getInstance()->netItemStackToCore($action->newItem);
|
$new = $this->netItemStackToCore($action->newItem);
|
||||||
switch($action->sourceType){
|
switch($action->sourceType){
|
||||||
case NetworkInventoryAction::SOURCE_CONTAINER:
|
case NetworkInventoryAction::SOURCE_CONTAINER:
|
||||||
if($action->windowId === ContainerIds::UI and $action->inventorySlot > 0){
|
if($action->windowId === ContainerIds::UI and $action->inventorySlot > 0){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user