From 92e6f930ab354085d91f76a4b878d2e22b3bcee9 Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Mon, 30 Aug 2021 21:44:24 +0200 Subject: Revert "Fix inventory prepend func" This reverts commit cf799dafe7c3aae58d4f90450af3432fa7d4d329. --- content.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'content.go') diff --git a/content.go b/content.go index 4d37942..2555f7d 100644 --- a/content.go +++ b/content.go @@ -590,10 +590,10 @@ func prependTexture(prep string, t *mt.Texture) { *t = mt.Texture(s) } -func (sc *serverConn) prependInv(inv *mt.Inv) { - for k, l := range *inv { +func (sc *serverConn) prependInv(inv mt.Inv) { + for k, l := range inv { for i := range l.Stacks { - prepend(sc.name, &(*inv)[k].InvList.Stacks[i].Name) + prepend(sc.name, &inv[k].InvList.Stacks[i].Name) } } } -- cgit v1.2.3