diff --git a/handlers/animations.lua b/handlers/animations.lua
index 591a5fac73bfbb0eddf54f3d54c4c9c392753859..ea6c83cd932df39950a01d3cdeb5b2820e99ee8e 100644
--- a/handlers/animations.lua
+++ b/handlers/animations.lua
@@ -24,8 +24,8 @@ function xdecor.sit(pos, node, clicker, pointed_thing)
 		default.player_attached[player_name] = false
 		default.player_set_animation(clicker, "stand", 30)
 
-	elseif not default.player_attached[player_name] and node.param2 <= 3 and not
-			ctrl.sneak and vector.equals(vel, {x=0,y=0,z=0}) then
+	elseif not default.player_attached[player_name] and node.param2 <= 3 and
+			not ctrl.sneak and vector.equals(vel, {x=0,y=0,z=0}) then
 
 		clicker:set_eye_offset({x=0, y=-7, z=2}, {x=0, y=0, z=0})
 		clicker:set_physics_override(0, 0, 0)
diff --git a/workbench.lua b/workbench.lua
index fee0bd953f0c473cdbdae9c09e9132c6284c4c1f..67daacddeb39a117b8c96039190cf8a800f2b6ca 100644
--- a/workbench.lua
+++ b/workbench.lua
@@ -5,14 +5,19 @@ screwdriver = screwdriver or {}
 -- Only the regular, solid blocks without metas or explosivity can be cut.
 local nodes = {}
 for node, def in pairs(minetest.registered_nodes) do
-	if (def.drawtype == "normal" or def.drawtype:find("glass")) and
-	   (def.groups.cracky or def.groups.choppy) and not
-	   def.on_construct and not def.after_place_node and not
-	   def.after_place_node and not def.on_rightclick and not
-	   def.on_blast and not def.allow_metadata_inventory_take and not
-	   (def.groups.not_in_creative_inventory == 1) and not
-	   def.groups.wool and not def.description:find("Ore") and
-	   def.description and def.description ~= "" and def.light_source == 0
+	if (def.drawtype == "normal" or def.drawtype:sub(1,5) == "glass") and
+	   (def.groups.cracky or def.groups.choppy) and
+	   not def.on_construct and
+	   not def.after_place_node and
+	   not def.on_rightclick and
+	   not def.on_blast and
+	   not def.allow_metadata_inventory_take and
+	   not (def.groups.not_in_creative_inventory == 1) and
+	   not def.groups.wool and
+	   not def.description:find("Ore") and
+	   def.description and
+	   def.description ~= "" and
+	   def.light_source == 0
 	then
 		nodes[#nodes+1] = node
 	end