Commit 364eeb53 authored by Az928's avatar Az928 Committed by GitHub
Browse files

Update BaseTransaction.php

parent 2d9a0ad0
......@@ -85,6 +85,13 @@ class BaseTransaction implements Transaction {
public function getTargetItem(){
return clone $this->targetItem;
}
/**
* @return Item
*/
public function getSourceItem(){
return clone $this->inventory->getItem($this->slot);
}
/**
* @param Item $item
......@@ -262,4 +269,4 @@ class BaseTransaction implements Transaction {
return true;
}
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment