Code Monkey home page Code Monkey logo

Comments (8)

wsor4035 avatar wsor4035 commented on June 15, 2024 2

what mods are you using? seems this issue probably should have been filed at https://github.com/mt-mods/unifieddyes/issues

from minetest.

rubenwardy avatar rubenwardy commented on June 15, 2024

It's weird that it says global there, as diggername should be a local variable. Have you modified the mod?

https://github.com/mt-mods/unifieddyes/blob/master/api.lua#L72

from minetest.

jamesreqiuem avatar jamesreqiuem commented on June 15, 2024

I didn't modified it. Line 72 in my api.lua is identical to the line in your link.
The error came after I blew up an area with TNT.

from minetest.

jamesreqiuem avatar jamesreqiuem commented on June 15, 2024

I'm sorry, you are right. I posted the wrong crash report. The report from my openingpost was after a modification attempt. The original crash report is:

AsyncErr: Lua: Runtime error from mod '*builtin*' in callback luaentity_Step(): /home/james/.minetest/mods/unifieddyes/api.lua:52: attempt to index local 'digger' (a nil value)
stack traceback:
	/home/james/.minetest/mods/unifieddyes/api.lua:52: in function 'on_dig'
	/usr/share/minetest/builtin/game/falling.lua:289: in function 'try_place'
	/usr/share/minetest/builtin/game/falling.lua:398: in function </usr/share/minetest/builtin/game/falling.lua:314>

Sorry!

from minetest.

jamesreqiuem avatar jamesreqiuem commented on June 15, 2024

I edited my starting post with the correct crash report.

from minetest.

rubenwardy avatar rubenwardy commented on June 15, 2024

Cc/ @wsor4035

from minetest.

jamesreqiuem avatar jamesreqiuem commented on June 15, 2024

3D Armor
Animalia
ArtDeco
Automobiles Pack
Banners
Basic Materials and items
Biofuel
Bonemeal
C Doors
File Cabinets
Castle Gates
Castle Lighting
Castle Masonry
Castle Shields
Castle Storage
Castle Tapestries
Castle Weapons
Cblocks
Cement
Church Modpack
Extended Circular Saw
Colored Blocks
Creatura
Display Modpack
Storage Drawers
Ephesus
Extra Wool Stuff
Facade
Procedural Furniture
Greek
House Windows
Hand Dryer
Home Workshop modpack
Homedecor
Interior Decor
Laptop
Laptop Extend Pack 2
Laptop PC Pack 1
LootChest Modpack
Living Room Furnitures
LWColorable
Magic Materials
Mesecons
Mobs Redo API
More Structures
More Blocks
Morelights
morelights_dim
More Ores
Mud
Multidecor
Pipeworks
Place Rotated
Plaster
Poly Decor
Simple Furniture
Solid Color Blocks
Technic Plus Beta
Unified Inventory
Unified Dyes
Vision Lib
Wheitestone
Xcompat
X-Decor-libre

from minetest.

SmallJoker avatar SmallJoker commented on June 15, 2024

Related code:

-- Check what's here
local n2 = core.get_node(np)
local nd = core.registered_nodes[n2.name]
-- If it's not air or liquid, remove node and replace it with
-- it's drops
if n2.name ~= "air" and (not nd or nd.liquidtype == "none") then
if nd and nd.buildable_to == false then
nd.on_dig(np, n2, nil)
-- If it's still there, it might be protected
if core.get_node(np).name == n2.name then
return false
end
else
core.remove_node(np)
end
end

This on_dig call was introduced 4 years ago in 723926a.
This issue was caused by @fluxionary in mt-mods/unifieddyes@5af9254c3#diff-03f26099aa13de776c192ea8143fa3cac7471f1ca076626465e92821420f79d0L62

Not a Minetest issue. Closing.

from minetest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.