Created
April 3, 2011 23:06
-
-
Save pskupinski/900910 to your computer and use it in GitHub Desktop.
A patch that keeps the server always at full daylight, but doesn't break redstone related code as well.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- disassembled/cw.j 2011-04-01 15:35:10.894581873 -0400 | |
+++ modded_asm/cw.j 2011-04-03 19:09:03.546031504 -0400 | |
@@ -6912,16 +6912,26 @@ | |
lreturn | |
.end method | |
-.method public l()J | |
+; Redstone code and anything not night/day related gets to use this special | |
+; function, so they don't break as well. | |
+.method public ll()J | |
.limit stack 2 | |
.limit locals 1 | |
- .line 1761 | |
aload_0 | |
getfield cw/q Lch; | |
invokevirtual ch/f()J | |
lreturn | |
.end method | |
+; Always return zero, a quick and easy way to break the day/night cycle. | |
+.method public l()J | |
+ .limit stack 2 | |
+ .limit locals 1 | |
+ .line 1761 | |
+ lconst_0 | |
+ lreturn | |
+.end method | |
+ | |
.method public m()Lao; | |
.limit stack 5 | |
.limit locals 1 | |
--- disassembled/bo.j 2011-04-01 15:34:44.538451175 -0400 | |
+++ modded_asm/bo.j 2011-04-03 19:01:55.895910903 -0400 | |
@@ -49,7 +49,7 @@ | |
iload_3 | |
iload 4 | |
aload_1 | |
- invokevirtual cw/l()J | |
+ invokevirtual cw/ll()J | |
invokespecial nr/<init>(IIIJ)V | |
invokeinterface java/util/List/add(Ljava/lang/Object;)Z 2 | |
pop | |
@@ -477,7 +477,7 @@ | |
invokeinterface java/util/List/size()I 1 | |
ifle Label62 | |
aload_1 | |
- invokevirtual cw/l()J | |
+ invokevirtual cw/ll()J | |
getstatic bo/b Ljava/util/List; | |
iconst_0 | |
invokeinterface java/util/List/get(I)Ljava/lang/Object; 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment