aboutsummaryrefslogtreecommitdiff
path: root/formspec.go
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2025-03-26 13:40:04 +0100
committerHimbeer <himbeer@disroot.org>2025-03-26 13:40:22 +0100
commitc0a5b96e20a1dc1e7d1509f0612c18d4532a41ca (patch)
tree701ac70abd54195c83055de04c6236a4485433a3 /formspec.go
parent7800bf490fa92879dfc46a54836624a8d1c6c6f6 (diff)
Update to Luanti 5.11
Closes #161.
Diffstat (limited to 'formspec.go')
-rw-r--r--formspec.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/formspec.go b/formspec.go
index db0688d..8cac522 100644
--- a/formspec.go
+++ b/formspec.go
@@ -6,7 +6,7 @@ import (
var itemName = regexp.MustCompile("(item_image\\[[0-9.-]+,[0-9.-]+;[0-9.-]+,[0-9.-]+;)([a-zA-Z0-9-_.: ]+)(\\])")
var itemButtonName = regexp.MustCompile("(item_image_button\\[[0-9.-]+,[0-9.-]+;[0-9.-]+,[0-9.-]+;)([a-zA-Z0-9-_.: ]+)(;[a-zA-Z0-9-_.: ]+;[^\\[\\]]*\\])")
-var textureName = regexp.MustCompile("([a-zA-Z0-9-_.]+\\.(?i:png|jpg|jpeg|bmp|tga|obj|b3d|x|gltf|glb))")
+var textureName = regexp.MustCompile("([a-zA-Z0-9-_.]+\\.(?i:png|jpg|jpeg|tga|obj|b3d|x|gltf|glb))")
func (sc *ServerConn) prependFormspec(fs *string) {
*fs = ReplaceAllStringSubmatchFunc(textureName, *fs, func(groups []string) string {