Page Menu
Home
1F616EMO Bugtracker
Search
Configure Global Search
Log In
Files
F156785
init.lua
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
599 B
Referenced Files
None
Subscribers
None
init.lua
View Options
-- twi_mods/smartshop_mod/init.lua
-- Modify smartshop
-- Copyright (C) 2024 1F616EMO
-- SPDX-License-Identifier: LGPL-3.0-or-later
-- Do not use unlimited inventory unless in creative mode
local
old_initialize_metadata
=
smartshop
.
shop_class
.
initialize_metadata
function
smartshop
.
shop_class
:
initialize_metadata
(
player
)
old_initialize_metadata
(
self
,
player
)
local
player_name
if
type
(
player
)
==
"string"
then
player_name
=
player
else
player_name
=
player
:
get_player_name
()
end
if
not
minetest
.
is_creative_enabled
(
player_name
)
then
self
:
set_unlimited
(
false
)
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 2, 8:50 PM (1 h, 48 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a9/9f/ba3b15fc1cb5115481c3a76c4b27
Default Alt Text
init.lua (599 B)
Attached To
Mode
rTWIMODS Survival Server Custom Modifications
Attached
Detach File
Event Timeline
Log In to Comment