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:
Dylan K. Taylor 2020-11-20 21:31:06 +00:00
parent 870d237260
commit f2bdbb0c35

View File

@ -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){