commit stringlengths 40 40 | old_file stringlengths 6 181 | new_file stringlengths 6 181 | old_contents stringlengths 448 7.17k | new_contents stringlengths 449 7.17k | subject stringlengths 0 450 | message stringlengths 6 4.92k | lang stringclasses 1
value | license stringclasses 12
values | repos stringlengths 9 33.9k |
|---|---|---|---|---|---|---|---|---|---|
92ec33e4cd95ec01ed087ff85fc0c27069270a3d | fblualib/ffivector/test/ffivector_test.lua | fblualib/ffivector/test/ffivector_test.lua | --
-- Copyright (c) 2014, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
require('fb.lua... | --
-- Copyright (c) 2014, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
require('fb.lua... | Fix ffivector_test. | Fix ffivector_test.
Summary: I broke this for no good reason at all. Sorry.
Test Plan: fbconfig fblualib/ffivector/test && fbmake runtests
Reviewed By: pamelavagata@fb.com
FB internal diff: D1588036
Tasks: 5096599
| Lua | bsd-3-clause | facebook/fblualib,raphaelamorim/fblualib,soumith/fblualib,szagoruyko/fblualib,soumith/fblualib,facebook/fblualib,raphaelamorim/fblualib,szagoruyko/fblualib |
eb85fd7974acee779212ba0e2d5b9483aef65ed2 | onmt/Seq2Seq.lua | onmt/Seq2Seq.lua | --[[ Sequence to sequence model with attention. ]]
local Seq2Seq, parent = torch.class('Seq2Seq', 'Model')
local options = {
{
'-enc_layers', 0,
[[If > 0, number of layers of the encode. This overrides the global `-layers` option.]],
{
valid = onmt.utils.ExtendedCmdLine.isUInt(),
structural =... | --[[ Sequence to sequence model with attention. ]]
local Seq2Seq, parent = torch.class('Seq2Seq', 'Model')
local options = {
{
'-enc_layers', 0,
[[If > 0, number of layers of the encode. This overrides the global `-layers` option.]],
{
valid = onmt.utils.ExtendedCmdLine.isUInt(),
structural =... | Rely on option value to define the encoder output size | Rely on option value to define the encoder output size
Fixes #234.
| Lua | mit | monsieurzhang/OpenNMT,OpenNMT/OpenNMT,jungikim/OpenNMT,monsieurzhang/OpenNMT,da03/OpenNMT,jungikim/OpenNMT,da03/OpenNMT,monsieurzhang/OpenNMT,jsenellart/OpenNMT,OpenNMT/OpenNMT,da03/OpenNMT,jungikim/OpenNMT,jsenellart/OpenNMT,jsenellart/OpenNMT,jsenellart-systran/OpenNMT,jsenellart-systran/OpenNMT,OpenNMT/OpenNMT,jsene... |
3bad170979ccbce8c9a3bb3dbfcbb9c9e0bef3de | Quadtastic/Frame.lua | Quadtastic/Frame.lua | local Rectangle = require("Rectangle")
local renderutils = require("Renderutils")
local Layout = require("Layout")
local Frame = {}
local transform = require("transform")
local quads = renderutils.border_quads(48, 0, 16, 16, 128, 128, 2)
Frame.start = function(state, x, y, w, h)
x = x or state.layout.next_x
y = ... | local Rectangle = require("Rectangle")
local renderutils = require("Renderutils")
local Layout = require("Layout")
local Frame = {}
local transform = require("transform")
local quads = renderutils.border_quads(48, 0, 16, 16, 128, 128, 2)
Frame.start = function(state, x, y, w, h)
x = x or state.layout.next_x
y = ... | Fix Frame not setting its layout advances correctly | Fix Frame not setting its layout advances correctly
| Lua | mit | 25A0/Quadtastic,25A0/Quadtastic |
ab68863ee638ff0f6134fc3be3e41ad9f22c2d7f | lua/mediaplayer/services/resource/init.lua | lua/mediaplayer/services/resource/init.lua | AddCSLuaFile "shared.lua"
include "shared.lua"
local urllib = url
local FilenamePattern = "([^/]+)%.%S+$"
local FilenameExtPattern = "([^/]+%.%S+)$"
SERVICE.TitleIncludeExtension = true -- include extension in title
function SERVICE:GetMetadata( callback )
if not self._metadata then
local title
local pattern... | AddCSLuaFile "shared.lua"
include "shared.lua"
local urllib = url
local FilenamePattern = "([^/]+)%.%S+$"
local FilenameExtPattern = "([^/]+%.%S+)$"
SERVICE.TitleIncludeExtension = true -- include extension in title
function SERVICE:GetMetadata( callback )
if not self._metadata then
local title
local pattern... | Fixed error when grabbing the path string from a resource URL. | Fixed error when grabbing the path string from a resource URL.
| Lua | mit | pixeltailgames/gm-mediaplayer,pixeltailgames/gm-mediaplayer |
0f64df3ae71795b8a9371f95f39c9c006fa7bccf | UCDwanted/server.lua | UCDwanted/server.lua | local wantedPoints = {}
addEventHandler("onResourceStart", resourceRoot,
function ()
for _, plr in ipairs(Element.getAllByType("player")) do
if (not plr.account.guest) then
setWantedPoints(plr, exports.UCDaccounts:GAD(plr, "wp"))
end
end
end
)
addEventHandler("onResourceStop", resourceRoot,
function ... | local wantedPoints = {}
addEventHandler("onResourceStart", resourceRoot,
function ()
for _, plr in ipairs(Element.getAllByType("player")) do
if (not plr.account.guest) then
setWantedPoints(plr, exports.UCDaccounts:GAD(plr, "wp"))
end
end
end
)
addEventHandler("onResourceStop", resourceRoot,
function ... | UCDwanted | UCDwanted
- Added a wanted counter stat every time wp gets added
- Fixed a simple error with saving stats
| Lua | mit | nokizorque/ucd,nokizorque/ucd |
1a6d1715ad377f4ebe6ce29bde5a97badd98fc66 | premakeUtils.lua | premakeUtils.lua |
function coInitParams(_params)
co_baseAbsPath = os.getcwd()
print("co_baseAbsPath: "..co_baseAbsPath)
co_externalAbsPath = co_baseAbsPath .. "/external"
co_buildPath = "build/" .. _ACTION
local coreRelativePath = "."
if _params.coreRelativePath then
coreRelativePath = _params.coreRelativePath
end
local coreA... |
function coInitParams(_params)
co_baseAbsPath = os.getcwd()
print("co_baseAbsPath: "..co_baseAbsPath)
co_externalAbsPath = co_baseAbsPath .. "/external"
co_buildPath = "build/" .. _ACTION
local coreRelativePath = "."
if _params.coreRelativePath then
coreRelativePath = _params.coreRelativePath
end
local coreA... | Fixed shaders import when importing from same workspace. | Fixed shaders import when importing from same workspace.
| Lua | mit | smogpill/core,smogpill/core |
999fbfe300c82a5865fee7cea98c4bfc068a4055 | test/test_writeObject.lua | test/test_writeObject.lua | local myTester = torch.Tester()
local tests = {}
-- checks that an object can be written and unwritten
-- returns false if an error occurs
local function serializeAndDeserialize(obj)
local file = torch.MemoryFile()
file:binary()
local ok, msg = pcall (file.writeObject, file, obj)
myTester:assert(ok, 'err... | local myTester = torch.Tester()
local tests = {}
-- checks that an object can be written and unwritten
-- returns false if an error occurs
local function serializeAndDeserialize(obj)
local file = torch.MemoryFile()
file:binary()
local ok, msg = pcall (file.writeObject, file, obj)
myTester:assert(ok, 'err... | Regression test for MemoryFile bug. | Regression test for MemoryFile bug.
| Lua | bsd-3-clause | Moodstocks/torch7,wgapl/torch7,Moodstocks/torch7,Atcold/torch7,yozw/torch7,nicholas-leonard/torch7,adamlerer/torch7,wickedfoo/torch7,colesbury/torch7,szagoruyko/torch7,yozw/torch7,adamlerer/torch7,diz-vara/torch7,wgapl/torch7,nicholas-leonard/torch7,Atcold/torch7,colesbury/torch7,wickedfoo/torch7,diz-vara/torch7,szagor... |
7b19c8c035681f990dec3bb57946360e0a47ae85 | samples/gstvideo.lua | samples/gstvideo.lua | #! /usr/bin/env lua
--
-- Sample GStreamer application, port of public Vala GStreamer Video
-- Example (http://live.gnome.org/Vala/GStreamerSample)
--
require 'lgi'
local GLib = require 'lgi.GLib'
local Gtk = require 'lgi.Gtk'
local Gst = require 'lgi.Gst'
local GstInterfaces = require 'lgi.GstInterfaces'
Gtk.init()... | #! /usr/bin/env lua
--
-- Sample GStreamer application, port of public Vala GStreamer Video
-- Example (http://live.gnome.org/Vala/GStreamerSample)
--
require 'lgi'
local GLib = require 'lgi.GLib'
local Gtk = require 'lgi.Gtk'
local Gst = require 'lgi.Gst'
local GstInterfaces = require 'lgi.GstInterfaces'
Gtk.init()... | More fixes to video sample, still dysfunctional though. | More fixes to video sample, still dysfunctional though.
| Lua | mit | pavouk/lgi,zevv/lgi,psychon/lgi |
fa77dc94b184a75495329dc46044841968f3b804 | script/c88754763.lua | script/c88754763.lua | --CX 熱血指導神アルティメットレーナー
function c88754763.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,9),4)
c:EnableReviveLimit()
--cannot be target
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)... | --CX 熱血指導神アルティメットレーナー
function c88754763.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,9),4)
c:EnableReviveLimit()
--cannot be target
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)... | Update c88754763.lua | Update c88754763.lua
fix | Lua | mit | sidschingis/DevProLauncher,SuperAndroid17/DevProLauncher,Tic-Tac-Toc/DevProLauncher |
53a2c43bed17127c8e4641ec07c39136a1aa4c5d | vi_tags.lua | vi_tags.lua | local M = {}
local state = {
tags = nil, -- current set of tags
tagstack = {},-- current tag stack: list of { i=num, tags={tag list} }
tagidx = 0, -- index into tagstack of current level
lasttag = nil,-- last tag list
timestamp = nil, -- tags file modification time.
}
M.state = state
-- Load a... | local M = {}
local state = {
tags = nil, -- current set of tags
tagstack = {},-- current tag stack: list of { i=num, tags={tag list} }
tagidx = 0, -- index into tagstack of current level
lasttag = nil,-- last tag list
timestamp = nil, -- tags file modification time.
}
M.state = state
-- Load a... | Make an attempt to convert regular expressions in tag search patterns to the right format. This fixes jumping to tags for functions with pointer arguments. | Make an attempt to convert regular expressions in tag search patterns to the right
format. This fixes jumping to tags for functions with pointer arguments.
| Lua | mit | jugglerchris/textadept-vi,erig0/textadept-vi,jugglerchris/textadept-vi |
8072eac3ed1453803a64fa8d21100e67bc1315a4 | share/lua/website/videobash.lua | share/lua/website/videobash.lua |
-- libquvi-scripts
-- Copyright (C) 2011 Thomas Preud'homme <robotux@celest.fr>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Fr... |
-- libquvi-scripts
-- Copyright (C) 2011 Thomas Preud'homme <robotux@celest.fr>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Fr... | FIX: videobash.lua: media URL pattern | FIX: videobash.lua: media URL pattern
* Fix "error: videobash.lua:54: no match: media url"
* Unescape media URL
| Lua | agpl-3.0 | legatvs/libquvi-scripts,alech/libquvi-scripts,alech/libquvi-scripts,DangerCove/libquvi-scripts,DangerCove/libquvi-scripts,hadess/libquvi-scripts-iplayer,legatvs/libquvi-scripts,hadess/libquvi-scripts-iplayer |
63dc89a24c054aa7c53e37c0bf6340fd07a73539 | Abillist.lua | Abillist.lua | --[[
This module prints the list of all Pokémon, alternative forms included, having
a given ability.
--]]
local k = {}
local mw = require('mw')
local abillib = require('Wikilib-abils')
local box = require('Box')
local css = require('Css')
local links = require('Links')
local list = require('Wikilib-lists')
--local... | --[[
This module prints the list of all Pokémon, alternative forms included, having
a given ability.
--]]
local k = {}
local mw = require('mw')
local abillib = require('Wikilib-abils')
local box = require('Box')
local css = require('Css')
local links = require('Links')
local list = require('Wikilib-lists')
local m... | Just removing an import, but the last burst of commit fixed pokemoncentral/wiki-project#15 | Just removing an import, but the last burst of commit fixed pokemoncentral/wiki-project#15
| Lua | cc0-1.0 | pokemoncentral/wiki-lua-modules |
6428e5664ef717099417c71f2f9e6c23719f875a | src/lua/Parallel.lua | src/lua/Parallel.lua | local zmq = require "lzmq"
local zloop = require "lzmq.loop"
local zthreads = require "lzmq.threads"
local mp = require "cmsgpack"
local zassert = zmq.assert
local ENDPOINT = "inproc://main"
local THREAD_STARTER = [[
local ENDPOINT = ]] .. ("%q"):format(ENDPOINT) .. [[
local zmq = require "lzm... | local zmq = require "lzmq"
local zloop = require "lzmq.loop"
local zthreads = require "lzmq.threads"
local mp = require "cmsgpack"
local zassert = zmq.assert
local ENDPOINT = "inproc://main"
local THREAD_STARTER = [[
local ENDPOINT = ]] .. ("%q"):format(ENDPOINT) .. [[
local zmq = require "lzm... | Fix. check creation work thread. | Fix. check creation work thread.
| Lua | mit | moteus/lua-Parallel,kidaa/lua-Parallel |
099e5bd55a17f67e0510784a726abce8ce5c5e33 | protocols/6x4/luasrc/model/cbi/admin_network/proto_6to4.lua | protocols/6x4/luasrc/model/cbi/admin_network/proto_6to4.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | proto/6x4: cast 6to4 adv_interface to string when saving to uci, fixes 6in4.sh not picking up the adv interfaces | proto/6x4: cast 6to4 adv_interface to string when saving to uci, fixes 6in4.sh not picking up the adv interfaces
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@9009 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | ch3n2k/luci,Canaan-Creative/luci,freifunk-gluon/luci,ThingMesh/openwrt-luci,zwhfly/openwrt-luci,eugenesan/openwrt-luci,8devices/carambola2-luci,eugenesan/openwrt-luci,ch3n2k/luci,ReclaimYourPrivacy/cloak-luci,ch3n2k/luci,ReclaimYourPrivacy/cloak-luci,ThingMesh/openwrt-luci,Canaan-Creative/luci,yeewang/openwrt-luci,Recl... |
89fe3e305129e537088fe9ec6e6970c85265d72e | spec/unit/defaults_spec.lua | spec/unit/defaults_spec.lua | describe("defaults module", function()
local Defaults, DataStorage
setup(function()
require("commonrequire")
Defaults = require("apps/filemanager/filemanagersetdefaults")
DataStorage = require("datastorage")
end)
it("should load all defaults from defaults.lua", function()
... | describe("defaults module", function()
local Defaults, DataStorage
setup(function()
require("commonrequire")
Defaults = require("apps/filemanager/filemanagersetdefaults")
DataStorage = require("datastorage")
end)
it("should load all defaults from defaults.lua", function()
... | [spec] Fix defaults_spec | [spec] Fix defaults_spec
Updated for https://github.com/koreader/koreader/pull/4691
Also the assert.is_same() argument order was wrong.
The first argument is expected, the second the real-life result.
Otherwise the error message in case of failure is misleading.
| Lua | agpl-3.0 | koreader/koreader,NiLuJe/koreader,NiLuJe/koreader,koreader/koreader,Frenzie/koreader,mihailim/koreader,Markismus/koreader,poire-z/koreader,poire-z/koreader,pazos/koreader,Hzj-jie/koreader,mwoz123/koreader,houqp/koreader,Frenzie/koreader |
526140efdd531134e4c2010a4f2415e0e7d1924c | lualib/sys/socketdispatch.lua | lualib/sys/socketdispatch.lua | local socket = require "sys.socket"
local core = require "sys.core"
local pairs = pairs
local assert = assert
local tremove = table.remove
local CONNECTING = 1
local CONNECTED = 2
local CLOSE = 5
local FINAL = 6
local dispatch = {}
local mt = {
__index = dispatch,
__gc = function(tbl)
tbl:clo... | local socket = require "sys.socket"
local core = require "sys.core"
local pairs = pairs
local assert = assert
local tremove = table.remove
local CONNECTING = 1
local CONNECTED = 2
local CLOSE = 5
local FINAL = 6
local dispatch = {}
local mt = {
__index = dispatch,
__gc = function(tbl)
if tbl.... | fix socketdispatch auth race | fix socketdispatch auth race
| Lua | mit | findstr/silly |
c182b94bcab360f2e10d06de30e36223188cfe8e | src_trunk/resources/vehicle-system/c_vehicle_rightclick.lua | src_trunk/resources/vehicle-system/c_vehicle_rightclick.lua | wRightClick = nil
bInventory = nil
bCloseMenu = nil
ax, ay = nil
localPlayer = getLocalPlayer()
vehicle = nil
function requestInventory(button)
if button=="left" and not getElementData(localPlayer, "exclusiveGUI") then
if isVehicleLocked(vehicle) and vehicle ~= getPedOccupiedVehicle(localPlayer) then
t... | wRightClick = nil
bInventory = nil
bCloseMenu = nil
ax, ay = nil
localPlayer = getLocalPlayer()
vehicle = nil
function requestInventory(button)
if button=="left" and not getElementData(localPlayer, "exclusiveGUI") then
if isVehicleLocked(vehicle) and vehicle ~= getPedOccupiedVehicle(localPlayer) then
t... | fix for vehicle rightclick breaking with Impound again | fix for vehicle rightclick breaking with Impound again
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1559 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
85cba95646165e201ecb15a698b2dc6a3a12760a | contrib/package/ffluci-splash/src/luci-splash.lua | contrib/package/ffluci-splash/src/luci-splash.lua | #!/usr/bin/lua
package.path = "/usr/lib/lua/?.lua;/usr/lib/lua/?/init.lua;" .. package.path
package.cpath = "/usr/lib/lua/?.so;" .. package.cpath
require("ffluci.http")
require("ffluci.sys")
require("ffluci.model.uci")
-- Init state session
uci = ffluci.model.uci.StateSession()
function main(argv)
local cmd = arg... | #!/usr/bin/lua
package.path = "/usr/lib/lua/?.lua;/usr/lib/lua/?/init.lua;" .. package.path
package.cpath = "/usr/lib/lua/?.so;" .. package.cpath
require("ffluci.http")
require("ffluci.sys")
require("ffluci.model.uci")
-- Init state session
uci = ffluci.model.uci.StateSession()
function main(argv)
local cmd = arg... | ffluci-splash: Minor fixes | ffluci-splash: Minor fixes
| Lua | apache-2.0 | tobiaswaldvogel/luci,ollie27/openwrt_luci,Hostle/openwrt-luci-multi-user,daofeng2015/luci,maxrio/luci981213,LazyZhu/openwrt-luci-trunk-mod,aircross/OpenWrt-Firefly-LuCI,joaofvieira/luci,openwrt/luci,tcatm/luci,lcf258/openwrtcn,harveyhu2012/luci,jorgifumi/luci,bright-things/ionic-luci,kuoruan/luci,rogerpueyo/luci,male-p... |
ae5216e8b4527a1e3d4962fad7b933f420793666 | lua/weapons/remotecontroller.lua | lua/weapons/remotecontroller.lua | AddCSLuaFile()
SWEP.Author = "Divran" -- Originally by ShaRose, rewritten by Divran at 2011-04-03
SWEP.Contact = ""
SWEP.Purpose = "Remote control for Pod Controllers in wire."
SWEP.Instructions = "Left Click on Pod Controller to link up, and use to start controlling."
SWEP.Category = "Wiremod"
SWEP.PrintName = "Remo... | AddCSLuaFile()
SWEP.Author = "Divran" -- Originally by ShaRose, rewritten by Divran at 2011-04-03
SWEP.Contact = ""
SWEP.Purpose = "Remote control for Pod Controllers in wire."
SWEP.Instructions = "Left Click on Pod Controller to link up, and use to start controlling."
SWEP.Category = "Wiremod"
SWEP.PrintName = "Remo... | Updated Remote Controller (#1172) | Updated Remote Controller (#1172)
Fixed exploit with remote controller which allowed you to get into noclip on servers which have noclip disabled | Lua | apache-2.0 | NezzKryptic/Wire,garrysmodlua/wire,dvdvideo1234/wire,Grocel/wire,thegrb93/wire,wiremod/wire,sammyt291/wire,bigdogmat/wire |
05e5ba4a27bb34e60334107364c403a68cf6fba0 | mod_carbons/mod_carbons.lua | mod_carbons/mod_carbons.lua | -- XEP-0280: Message Carbons implementation for Prosody
-- Copyright (C) 2011 Kim Alvefur
--
-- This file is MIT/X11 licensed.
local st = require "util.stanza";
local jid_bare = require "util.jid".bare;
local xmlns_carbons = "urn:xmpp:carbons:1";
local xmlns_forward = "urn:xmpp:forward:0";
local host_sessions = hosts[... | -- XEP-0280: Message Carbons implementation for Prosody
-- Copyright (C) 2011 Kim Alvefur
--
-- This file is MIT/X11 licensed.
local st = require "util.stanza";
local jid_bare = require "util.jid".bare;
local xmlns_carbons = "urn:xmpp:carbons:1";
local xmlns_forward = "urn:xmpp:forward:0";
local host_sessions = hosts[... | mod_carbons: Fix handling of messages from remote hosts | mod_carbons: Fix handling of messages from remote hosts
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
c971ec7dc7f5693e81535ec8f78b83ede6a33857 | mods/screwdriver/init.lua | mods/screwdriver/init.lua |
local mode_text = {
{"Change rotation, Don't change axisdir."},
{"Keep choosen face in front then rotate it."},
{"Change axis dir, Reset rotation."},
{"Bring top in front then rotate it."},
}
local opposite_faces = {
[0] = 5,
[1] = 2,
[2] = 1,
[3] = 4,
[4] = 3,
[5] = 0,
}
local function screwdriver_setmode... |
local mode_text = {
{"Change rotation, Don't change axisdir."},
{"Keep choosen face in front then rotate it."},
{"Change axis dir, Reset rotation."},
{"Bring top in front then rotate it."},
}
local opposite_faces = {
[0] = 5,
[1] = 2,
[2] = 1,
[3] = 4,
[4] = 3,
[5] = 0,
}
local function screwdriver_setmode... | Fix crash when using the screwdriver on an unknown node | Fix crash when using the screwdriver on an unknown node
| Lua | lgpl-2.1 | evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy |
b53d4079797ca34869ed6970bf74243ec9450e9f | mods/mff/mff_pclasses/hunter.lua | mods/mff/mff_pclasses/hunter.lua | ------------------
-- Hunter class --
------------------
--
-- See https://github.com/Ombridride/minetest-minetestforfun-server/issues/114
--
pclasses.api.register_class("hunter", {
on_assigned = function(pname, inform)
if inform then
minetest.chat_send_player(pname, "You are now a hunter")
minetest.sound_pl... | ------------------
-- Hunter class --
------------------
--
-- See https://github.com/Ombridride/minetest-minetestforfun-server/issues/114
--
pclasses.api.register_class("hunter", {
on_assigned = function(pname, inform)
if inform then
minetest.chat_send_player(pname, "You are now a hunter")
minetest.sound_pl... | fix no drop hunter bow_minotaur_horn/arbalest_auto when loaded, issue https://github.com/MinetestForFun/server-minetestforfun/issues/420 | fix no drop hunter bow_minotaur_horn/arbalest_auto when loaded, issue https://github.com/MinetestForFun/server-minetestforfun/issues/420
| Lua | unlicense | Coethium/server-minetestforfun,sys4-fr/server-minetestforfun,LeMagnesium/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,MinetestForFun/minetest-minetestforfun-server,Coethium/server-minetestforfun,Coethium/server-minetestforfun,LeMagnesium/minetest-minetestforfun-s... |
3761aa95483ac060dc51973727b1f059698de016 | mods/unified_inventory/group.lua | mods/unified_inventory/group.lua | function unified_inventory.canonical_item_spec_matcher(spec)
local specname = ItemStack(spec):get_name()
if specname:sub(1, 6) == "group:" then
local group_names = specname:sub(7):split(",")
return function (itemname)
local itemdef = minetest.registered_items[itemname]
for _, group_name in ipairs(group_name... | function unified_inventory.canonical_item_spec_matcher(spec)
local specname = ItemStack(spec):get_name()
if specname:sub(1, 6) == "group:" then
local group_names = specname:sub(7):split(",")
return function (itemname)
local itemdef = minetest.registered_items[itemname]
for _, group_name in ipairs(group_name... | [u_inv] Use steel ingots as group item for ingots | [u_inv] Use steel ingots as group item for ingots
- Fix #480
| Lua | unlicense | sys4-fr/server-minetestforfun,Coethium/server-minetestforfun,Gael-de-Sailly/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,LeMagnesium/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,MinetestForFun/... |
End of preview. Expand in Data Studio
- Downloads last month
- 4