Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xdecor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
xdecor
Commits
a2b7ebc6
Commit
a2b7ebc6
authored
8 years ago
by
Tim
Browse files
Options
Downloads
Patches
Plain Diff
Run luacheck and fix the warnings.
parent
0b85ec09
No related branches found
No related tags found
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
.luacheckrc
+9
-0
9 additions, 0 deletions
.luacheckrc
chess.lua
+2
-2
2 additions, 2 deletions
chess.lua
enchanting.lua
+0
-1
0 additions, 1 deletion
enchanting.lua
nodes.lua
+0
-1
0 additions, 1 deletion
nodes.lua
rope.lua
+1
-3
1 addition, 3 deletions
rope.lua
workbench.lua
+2
-1
2 additions, 1 deletion
workbench.lua
with
14 additions
and
8 deletions
.luacheckrc
0 → 100644
+
9
−
0
View file @
a2b7ebc6
unused_args = false
allow_defined_top = true
read_globals = {
"minetest",
"vector", "ItemStack",
"default",
"stairs", "doors", "xpanes",
}
This diff is collapsed.
Click to expand it.
chess.lua
+
2
−
2
View file @
a2b7ebc6
...
...
@@ -504,9 +504,9 @@ function realchess.move(pos, from_list, from_index, to_list, to_index, _, player
meta
:
set_string
(
"playerWhite"
,
playerWhite
)
meta
:
set_string
(
"playerBlack"
,
playerBlack
)
meta
:
set_string
(
"lastMove"
,
thisMove
)
lastMove
=
thisMove
meta
:
set_string
(
"lastMove"
,
lastMove
)
meta
:
set_int
(
"lastMoveTime"
,
minetest
.
get_gametime
())
local
lastMove
=
meta
:
get_string
(
"lastMove"
)
if
lastMove
==
"black"
then
minetest
.
chat_send_player
(
playerWhite
,
"["
..
os.date
(
"%H:%M:%S"
)
..
"] "
..
...
...
This diff is collapsed.
Click to expand it.
enchanting.lua
+
0
−
1
View file @
a2b7ebc6
...
...
@@ -127,7 +127,6 @@ function enchanting.destruct(pos)
end
function
enchanting
.
timer
(
pos
)
local
node
=
minetest
.
get_node
(
pos
)
local
num
=
#
minetest
.
get_objects_inside_radius
(
pos
,
0
.
9
)
if
num
==
0
then
...
...
This diff is collapsed.
Click to expand it.
nodes.lua
+
0
−
1
View file @
a2b7ebc6
...
...
@@ -354,7 +354,6 @@ xdecor.register("painting_1", {
inventory_image
=
"xdecor_painting_empty.png"
,
wield_image
=
"xdecor_painting_empty.png"
,
paramtype2
=
"wallmounted"
,
wield_image
=
"xdecor_painting_empty.png"
,
sunlight_propagates
=
true
,
groups
=
{
choppy
=
3
,
oddly_breakable_by_hand
=
2
,
flammable
=
2
,
attached_node
=
1
},
sounds
=
default
.
node_sound_wood_defaults
(),
...
...
This diff is collapsed.
Click to expand it.
rope.lua
+
1
−
3
View file @
a2b7ebc6
...
...
@@ -9,9 +9,7 @@ end)
function
rope
.
place
(
itemstack
,
placer
,
pointed_thing
)
if
pointed_thing
.
type
==
"node"
then
local
under
=
pointed_thing
.
under
local
above
=
pointed_thing
.
above
local
pos
=
above
local
pos
=
pointed_thing
.
above
local
oldnode
=
minetest
.
get_node
(
pos
)
local
stackname
=
itemstack
:
get_name
()
if
minetest
.
is_protected
(
pos
,
placer
:
get_player_name
())
then
return
end
...
...
This diff is collapsed.
Click to expand it.
workbench.lua
+
2
−
1
View file @
a2b7ebc6
...
...
@@ -229,7 +229,8 @@ for i = 1, #nodes do
local
def
=
minetest
.
registered_nodes
[
node
]
if
d
[
3
]
then
local
groups
,
tiles
=
{},
{}
local
groups
=
{}
local
tiles
groups
.
not_in_creative_inventory
=
1
for
k
,
v
in
pairs
(
def
.
groups
)
do
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment