Skip to content

Commit

Permalink
[mods/creative_inventory] Fixed a bug causing textures to appear black.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unarelith committed Jul 1, 2020
1 parent a586609 commit 439eb21
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions mods/creative_inventory/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
--
-- =====================================================================================
--
mod = openminer.mod_loader:register_mod("creative_inventory")
if not mods then mods = {} end

mods["creative_inventory"] = openminer.mod_loader:register_mod("creative_inventory")
mod = mods["creative_inventory"]

local modpath = mod:path()

mod:key {
id = "creative_inventory",
Expand All @@ -48,7 +53,7 @@ mod:key {
name = "img_background",
pos = {x = 0, y = 0},

texture = mod:path() .. "/textures/gui/creative_window.png",
texture = modpath .. "/textures/gui/creative_window.png",
clip = {x = 0, y = 0, width = 195, height = 136},
}

Expand Down Expand Up @@ -81,7 +86,7 @@ mod:key {
name = "scroll_bar",
pos = {x = 175, y = 18},

texture = mod:path() .. "/textures/gui/tabs.png",
texture = modpath .. "/textures/gui/tabs.png",
clip = {x = 232, y = 0, width = 12, height = 15},
clip_selected = {x = 244, y = 0, width = 12, height = 15},

Expand Down

0 comments on commit 439eb21

Please sign in to comment.