Bagnon

Bagnon

122M Downloads

Bagnon_GuildBank\components\item.lua:44: attempt to call method 'IsLocked' (a nil value)

Thrumbar opened this issue ยท 1 comments

commented

2x Bagnon_GuildBank\components\item.lua:44: attempt to call method 'IsLocked' (a nil value)
Bagnon_GuildBank\components\item.lua:44: in function <Bagnon_GuildBank\components\item.lua:38>

Locals:
self = Bagnon_GuildBankItemSlot58 {
0 =
bag = 1
BattlepayItemTexture = {
}
BagStaticTop = {
}
Flash = {
}
OrigItemLink = "|cffffffff|Hitem:124119::::::::110:253::::::|h[Big Gamy Ribs]|h|r"
IconBorder = {
}
newitemglowAnim = {
}
icon = Bagnon_GuildBankItemSlot58IconTexture {
}
ExtendedOverlay = {
}
UpgradeIcon = {
}
QuestBorder = Bagnon_GuildBankItemSlot58IconQuestTexture {
}
Cooldown = Bagnon_GuildBankItemSlot58Cooldown {
}
SplitStack = defined @FrameXML\ContainerFrame.lua:1046
BagStaticBottom = {
}
flash = {
}
scheduledSecondaryUpdate = false
ExtendedSlot = {
}
ExtendedOverlay2 = {
}
hasItem = true
JunkIcon = {
}
OrigItemEquipSlot = ""
OrigItemClass = "Tradeskill"
OrigItemQuality = 1
timeSinceUpgradeCheck = 0
OrigItemLevel = ""
Border = {
}
count = 47
ItemLevelFrame = {
}
Count = Bagnon_GuildBankItemSlot58Count {
}
flashAnim = {
}
info =

{
}
searchOverlay = Bagnon_GuildBankItemSlot58SearchOverlay {
}
frame = BagnonFrameguild {
}
NewItemTexture = {
}
}
button = "LeftButton"
(*temporary) = nil
(*temporary) = Bagnon_GuildBankItemSlot58 {
0 =
bag = 1
BattlepayItemTexture = {
}
BagStaticTop = {
}
Flash = {
}
OrigItemLink = "|cffffffff|Hitem:124119::::::::110:253::::::|h[Big Gamy Ribs]|h|r"
IconBorder = {
}
newitemglowAnim = {
}
icon = Bagnon_GuildBankItemSlot58IconTexture {
}
ExtendedOverlay = {
}
UpgradeIcon = {
}
QuestBorder = Bagnon_GuildBankItemSlot58IconQuestTexture {
}
Cooldown = Bagnon_GuildBankItemSlot58Cooldown {
}
SplitStack = defined @FrameXML\ContainerFrame.lua:1046
BagStaticBottom = {
}
flash = {
}
scheduledSecondaryUpdate = false
ExtendedSlot = {
}
ExtendedOverlay2 = {
}
hasItem = true
JunkIcon = {
}
OrigItemEquipSlot = ""
OrigItemClass = "Tradeskill"
OrigItemQuality = 1
timeSinceUpgradeCheck = 0
OrigItemLevel = ""
Border = {
}
count = 47
ItemLevelFrame = {
}
Count = Bagnon_GuildBankItemSlot58Count {
}
flashAnim = {
}
info =
{
}
searchOverlay = Bagnon_GuildBankItemSlot58SearchOverlay {
}
frame = BagnonFrameguild {
}
NewItemTexture = {
}
}
(*temporary) = "attempt to call method 'IsLocked' (a nil value)"
ItemSlot = {
0 =
OnEnter = defined @Bagnon_GuildBank\components\item.lua:77
__super = {
}
IsNew = defined @Bagnon_GuildBank\components\item.lua:122
UpdateCooldown = defined @Bagnon_GuildBank\components\item.lua:108
GetBlizzard = defined @Bagnon_GuildBank\components\item.lua:29
OnDragStart = defined @Bagnon_GuildBank\components\item.lua:65
OnReceiveDrag = defined @Bagnon_GuildBank\components\item.lua:71
__index = {
}
unused =
{
}
UpdateTooltip = defined @Bagnon_GuildBank\components\item.lua:87
Create = defined @Bagnon_GuildBank\components\item.lua:15
GetBag = defined @Bagnon_GuildBank\components\item.lua:117
UpdatedLocked = defined @Bagnon_GuildBank\components\item.lua:32
IsQuestItem = defined @Bagnon_GuildBank\components\item.lua:121
Name = "GuildItemSlot"
GetSlot = defined @Bagnon_GuildBank\components\item.lua:113
nextID = 98
OnClick = defined @Bagnon_GuildBank\components\item.lua:38
Construct = defined @Bagnon_GuildBank\components\item.lua:25
SplitStack = defined @Bagnon_GuildBank\components\item.lua:103
}

commented

In Bagnon_GuildBank\components\item.lua

change

if IsModifiedClick('SPLITSTACK') then
	if not self:IsLocked() then
		self.SplitStack = ItemSlot.SplitStack -- have no idea why is necessary
		OpenStackSplitFrame(select(2, self:GetInfo()), self, 'BOTTOMLEFT', 'TOPLEFT')
	end
	return
end

TO
if IsModifiedClick('SPLITSTACK') then
if not self.IsLocked then
self.SplitStack = ItemSlot.SplitStack -- have no idea why is necessary
OpenStackSplitFrame(self.count, self, 'BOTTOMLEFT', 'TOPLEFT',1)
end
return
end