mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-06-29 18:41:43 +00:00
Extract CommandSender to CommandSource, this should prevent Ess user object leaks.
This commit is contained in:
parent
cf9d79d24c
commit
6f85761f7f
145 changed files with 1848 additions and 590 deletions
|
@ -69,7 +69,7 @@ public class Commandpotion extends EssentialsCommand
|
|||
final MetaItemStack mStack = new MetaItemStack(stack);
|
||||
for (String arg : args)
|
||||
{
|
||||
mStack.addPotionMeta(user.getBase(), true, arg, ess);
|
||||
mStack.addPotionMeta(user.getSource(), true, arg, ess);
|
||||
}
|
||||
if (mStack.completePotion())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue