]> git.lizzy.rs Git - dragonblocks.git/blobdiff - engine/hotbar.js
Make dragonblocks.getTexture() return value contain background-size: cover
[dragonblocks.git] / engine / hotbar.js
index 755e03a7fd21752854acf3d1ddef915f33b71b4c..62f83095518e79da913fb8b2826861fb438e4ea5 100644 (file)
@@ -105,7 +105,6 @@ dragonblocks.Hotbar = class
                        slotDisplay.style.background = itemstack.item && dragonblocks.getTexture(itemstack.toItem().texture);
                        if (! slotDisplay.style.backgroundColor || slotDisplay.style.backgroundColor == "initial")
                                slotDisplay.style.backgroundColor = "rgba(0, 0, 0, 0.3)";
-                       slotDisplay.style.backgroundSize = "cover";
 
                        slotCountDisplay.innerHTML = (itemstack.count <= 1) ? "" : itemstack.count;