Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
minetest_game
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
minetest_game
Commits
496521f4
Commit
496521f4
authored
8 years ago
by
Diego Martínez
Committed by
paramat
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix some warnings.
Also fixes the failing travis checks.
parent
28ecb3b2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.luacheckrc
+2
-0
2 additions, 0 deletions
.luacheckrc
mods/screwdriver/init.lua
+2
-1
2 additions, 1 deletion
mods/screwdriver/init.lua
mods/tnt/init.lua
+11
-2
11 additions, 2 deletions
mods/tnt/init.lua
with
15 additions
and
3 deletions
.luacheckrc
+
2
−
0
View file @
496521f4
...
...
@@ -8,6 +8,8 @@ read_globals = {
"vector",
"VoxelManip", "VoxelArea",
"PseudoRandom", "ItemStack",
-- Silence "accessing undefined field copy of global table".
table = { fields = { "copy" } }
}
-- Overwrites minetest.handle_node_drops
...
...
This diff is collapsed.
Click to expand it.
mods/screwdriver/init.lua
+
2
−
1
View file @
496521f4
...
...
@@ -52,7 +52,8 @@ screwdriver.handler = function(itemstack, user, pointed_thing, mode, uses)
local
new_param2
=
preservePart
+
rotationPart
local
should_rotate
=
true
if
ndef
and
ndef
.
on_rotate
then
-- Node provides a handler, so let the handler decide instead if the node can be rotated
-- Node provides a handler, so let the handler decide instead if the node can be rotated
if
ndef
and
ndef
.
on_rotate
then
-- Copy pos and node because callback can modify it
local
result
=
ndef
.
on_rotate
(
vector
.
new
(
pos
),
{
name
=
node
.
name
,
param1
=
node
.
param1
,
param2
=
node
.
param2
},
...
...
This diff is collapsed.
Click to expand it.
mods/tnt/init.lua
+
11
−
2
View file @
496521f4
...
...
@@ -399,7 +399,12 @@ minetest.register_node("tnt:gunpowder", {
is_ground_content
=
false
,
sunlight_propagates
=
true
,
walkable
=
false
,
tiles
=
{
"tnt_gunpowder_straight.png"
,
"tnt_gunpowder_curved.png"
,
"tnt_gunpowder_t_junction.png"
,
"tnt_gunpowder_crossing.png"
},
tiles
=
{
"tnt_gunpowder_straight.png"
,
"tnt_gunpowder_curved.png"
,
"tnt_gunpowder_t_junction.png"
,
"tnt_gunpowder_crossing.png"
},
inventory_image
=
"tnt_gunpowder_inventory.png"
,
wield_image
=
"tnt_gunpowder_inventory.png"
,
selection_box
=
{
...
...
@@ -476,7 +481,11 @@ minetest.register_node("tnt:gunpowder_burning", {
fixed
=
{
-
1
/
2
,
-
1
/
2
,
-
1
/
2
,
1
/
2
,
-
1
/
2
+
1
/
16
,
1
/
2
},
},
drop
=
""
,
groups
=
{
dig_immediate
=
2
,
attached_node
=
1
,
connect_to_raillike
=
minetest
.
raillike_group
(
"gunpowder"
)},
groups
=
{
dig_immediate
=
2
,
attached_node
=
1
,
connect_to_raillike
=
minetest
.
raillike_group
(
"gunpowder"
)
},
sounds
=
default
.
node_sound_leaves_defaults
(),
on_timer
=
function
(
pos
,
elapsed
)
for
dx
=
-
1
,
1
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