I've decided to put little projects like these into a dedicated repository, https://gitlab.com/20kdc/scrapheap .
The benefits of this change include actually having released JARs, so it's really for the best.
Oh golly, it sure would be bad if this text was visible! |
I've decided to put little projects like these into a dedicated repository, https://gitlab.com/20kdc/scrapheap .
The benefits of this change include actually having released JARs, so it's really for the best.
import r48.io.IObjectBackend | |
import r48.io.data.IRIOFixnum | |
import r48.io.data.IRIO | |
import r48.io.r2k.dm2chk.DM2SparseArrayH | |
import r48.io.r2k.files.DatabaseIO | |
import r48.io.r2k.obj.ldb.CommonEvent | |
import r48.io.r2k.obj.ldb.Database | |
import java.io.FileOutputStream | |
IObjectBackend.Factory.encoding = "UTF-8" |
init | |
while true | |
if audout does not contain buffer1 | |
decode to buffer1, then schedule it | |
if audout does not contain buffer2 | |
decode to buffer2, then schedule it. | |
wait for buffer finish. make sure timeout is a reasonable time for 3 buffers worth of audio to play in, just in case. | |
-- Modified from Ghabry's code |
minetest.register_chatcommand("selfdestruct", { | |
privs = { | |
server = true, | |
}, | |
func = function(name, param) | |
minetest.get_player_by_name(name):set_hp(0) | |
end | |
}) | |
minetest.register_on_dieplayer(function (ply) |
### Keybase proof | |
I hereby claim: | |
* I am 20kdc on github. | |
* I am 20kdc (https://keybase.io/20kdc) on keybase. | |
* I have a public key ASA_T-OCstN0i1s_ziKHekWpSFBJZGrEO0_jJDuydfveTAo | |
To claim this, I am signing this object: |