Update #27 - Fixed crash with fireballs, made offline start faster

This commit is contained in:
lax1dude
2024-03-10 13:28:39 -07:00
parent 0f86f71cfd
commit 6366638193
22 changed files with 511 additions and 61 deletions

View File

@ -13,7 +13,7 @@
> DELETE 2 @ 2 : 3
> CHANGE 1 : 14 @ 1 : 11
> CHANGE 1 : 15 @ 1 : 11
~ import java.util.Set;
~
@ -25,6 +25,7 @@
~ import com.google.common.collect.Lists;
~
~ import net.lax1dude.eaglercraft.v1_8.IOUtils;
~ import net.lax1dude.eaglercraft.v1_8.ThreadLocalRandom;
~ import net.lax1dude.eaglercraft.v1_8.json.JSONTypeProvider;
~ import net.lax1dude.eaglercraft.v1_8.log4j.LogManager;
~ import net.lax1dude.eaglercraft.v1_8.log4j.Logger;
@ -87,6 +88,6 @@
> CHANGE 6 : 7 @ 6 : 7
~ return (SoundEventAccessorComposite) arraylist.get((new EaglercraftRandom()).nextInt(arraylist.size()));
~ return (SoundEventAccessorComposite) arraylist.get(ThreadLocalRandom.current().nextInt(arraylist.size()));
> EOF

View File

@ -5,10 +5,11 @@
# Version: 1.0
# Author: lax1dude
> CHANGE 9 : 11 @ 9 : 10
> CHANGE 9 : 12 @ 9 : 10
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
~ import net.lax1dude.eaglercraft.v1_8.HString;
~ import net.lax1dude.eaglercraft.v1_8.ThreadLocalRandom;
> DELETE 1 @ 1 : 9
@ -18,7 +19,7 @@
> CHANGE 61 : 62 @ 61 : 62
~ EaglercraftRandom random = new EaglercraftRandom();
~ EaglercraftRandom random = ThreadLocalRandom.current();
> CHANGE 15 : 16 @ 15 : 16

View File

@ -5,9 +5,10 @@
# Version: 1.0
# Author: lax1dude
> CHANGE 3 : 4 @ 3 : 8
> CHANGE 3 : 5 @ 3 : 8
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
~ import net.lax1dude.eaglercraft.v1_8.ThreadLocalRandom;
> INSERT 6 : 7 @ 6
@ -15,6 +16,6 @@
> CHANGE 14 : 15 @ 14 : 15
~ int i = (300 + (new EaglercraftRandom()).nextInt(600)) * 20 * 2;
~ int i = (300 + ThreadLocalRandom.current().nextInt(600)) * 20 * 2;
> EOF

View File

@ -7,7 +7,7 @@
> DELETE 2 @ 2 : 4
> CHANGE 4 : 10 @ 4 : 8
> CHANGE 4 : 11 @ 4 : 8
~
~ import com.google.common.collect.Lists;
@ -15,6 +15,7 @@
~
~ import net.lax1dude.eaglercraft.v1_8.log4j.LogManager;
~ import net.lax1dude.eaglercraft.v1_8.log4j.Logger;
~ import net.lax1dude.eaglercraft.v1_8.minecraft.EntityConstructor;
> DELETE 66 @ 66 : 68

View File

@ -9,4 +9,22 @@
+
> INSERT 52 : 56 @ 52
+ if (d0 == 0.0) {
+ this.accelerationX = this.accelerationY = this.accelerationZ = 0.0D;
+ return;
+ }
> INSERT 16 : 20 @ 16
+ if (d0 == 0.0) {
+ this.accelerationX = this.accelerationY = this.accelerationZ = 0.0D;
+ return;
+ }
> CHANGE 46 : 47 @ 46 : 47
~ for (int i = 0, l = list.size(); i < l; ++i) {
> EOF