diff --git a/computercraft/ni-ctl.lua b/computercraft/ni-ctl.lua index 2147cbf..d385c64 100644 --- a/computercraft/ni-ctl.lua +++ b/computercraft/ni-ctl.lua @@ -271,6 +271,9 @@ local function scan_entities() for _, entity in pairs(entities) do entity.s = vector.new(entity.x, entity.y, entity.z) entity.v = vector.new(entity.motionX, entity.motionY, entity.motionZ) + if entity.deltaPosX then + entity.v = vector.new(entity.deltaPosX, entity.deltaPosY, entity.deltaPosZ) + end if entity.displayName ~= username then hud_entities[entity.displayName] = (hud_entities[entity.displayName] or 0) + 1 end diff --git a/ptt.py b/ptt.py index 432a6b6..8b4e54f 100755 --- a/ptt.py +++ b/ptt.py @@ -50,7 +50,7 @@ def mute(): if not muted: muted = True print("muted") - subprocess.run(["pacmd", "set-source-mute", source, "1"]) + subprocess.run(["pactl", "set-source-mute", source, "1"]) # this could call set_icon on the taskbar icon object directly, but that seems to inconsistently cause mysterious crashes in cairo wx.PostEvent(app.taskbar_icon, MuteSetEvent(muted=muted)) def unmute(): @@ -58,7 +58,7 @@ def unmute(): if muted: muted = False print("unmuted") - subprocess.run(["pacmd", "set-source-mute", source, "0"]) + subprocess.run(["pactl", "set-source-mute", source, "0"]) wx.PostEvent(app.taskbar_icon, MuteSetEvent(muted=muted)) def toggle(): diff --git a/screensaver.html b/screensaver.html new file mode 100644 index 0000000..5a8ed09 --- /dev/null +++ b/screensaver.html @@ -0,0 +1,132 @@ + + + diff --git a/wfc.html b/wfc.html index 33b726d..d61a3d4 100644 --- a/wfc.html +++ b/wfc.html @@ -1,8 +1,8 @@ -
+