]> git.lizzy.rs Git - Crafter.git/commitdiff
Fix ice transparency causing performance problems
authoroilboi <47129783+oilboi@users.noreply.github.com>
Tue, 30 Jun 2020 06:48:44 +0000 (02:48 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Tue, 30 Jun 2020 06:48:44 +0000 (02:48 -0400)
mods/main/nodes.lua

index 28b8b134e220950a21f70504756788e2f57f5c40..05af3bc98746fa6958478d95d57a235976d914f2 100644 (file)
@@ -177,7 +177,7 @@ minetest.register_node("main:glass", {
 minetest.register_node("main:ice", {
     description = "Ice",
     tiles = {"ice.png"},
-    drawtype = "glasslike",
+    drawtype = "normal",
        paramtype = "light",
        sunlight_propagates = true,
        sunlight_propagates = true,
@@ -187,8 +187,8 @@ minetest.register_node("main:ice", {
                footstep = {name = "glass_footstep", gain = 0.4},
         dug =  {name = "break_glass", gain = 0.4},
        }),
-       use_texture_alpha = false,
-       alpha = 100,
+       --use_texture_alpha = false,
+       --alpha = 100,
     drop = "",
     after_destruct = function(pos, oldnode)
        minetest.set_node(pos, {name="main:water"})