22w36a Fixed invisible lightning
This commit is contained in:
parent
09a5fa6760
commit
bf85c312f3
|
@ -71,7 +71,8 @@ public class Configuration {
|
||||||
this.showBanType = adapter.getBoolean("display_ban_type_on_kick", false);
|
this.showBanType = adapter.getBoolean("display_ban_type_on_kick", false);
|
||||||
this.blacklistOfflineDownload = adapter.getBoolean("origin_blacklist_block_offline_download", false);
|
this.blacklistOfflineDownload = adapter.getBoolean("origin_blacklist_block_offline_download", false);
|
||||||
this.blacklistReplits = adapter.getBoolean("origin_blacklist_block_replit_clients", false);
|
this.blacklistReplits = adapter.getBoolean("origin_blacklist_block_replit_clients", false);
|
||||||
this.blacklistOriginless = adapter.getBoolean("origin_blacklist_block_missing_origin_header", true);
|
adapter.getMap().remove("origin_blacklist_block_missing_origin_header");
|
||||||
|
this.blacklistOriginless = adapter.getBoolean("origin_blacklist_block_invalid_origin_header", true);
|
||||||
this.simpleWhitelistEnabled = adapter.getBoolean("origin_blacklist_use_simple_whitelist", false);
|
this.simpleWhitelistEnabled = adapter.getBoolean("origin_blacklist_use_simple_whitelist", false);
|
||||||
this.acceptBukkitConsoleCommandPacket = adapter.getBoolean("accept_bukkit_console_command_packets", false);
|
this.acceptBukkitConsoleCommandPacket = adapter.getBoolean("accept_bukkit_console_command_packets", false);
|
||||||
this.bungeeOnBungee = adapter.getBoolean("bungee_on_bungee", false);
|
this.bungeeOnBungee = adapter.getBoolean("bungee_on_bungee", false);
|
||||||
|
|
21594
javascript/classes.js
21594
javascript/classes.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -6,7 +6,7 @@ public class ConfigConstants {
|
||||||
|
|
||||||
public static boolean profanity = false;
|
public static boolean profanity = false;
|
||||||
|
|
||||||
public static final String version = "22w35c";
|
public static final String version = "22w36a";
|
||||||
public static final String mainMenuString = "eaglercraft " + version;
|
public static final String mainMenuString = "eaglercraft " + version;
|
||||||
|
|
||||||
public static final String forkMe = "https://github.com/lax1dude/eaglercraft";
|
public static final String forkMe = "https://github.com/lax1dude/eaglercraft";
|
||||||
|
|
|
@ -1394,7 +1394,8 @@ public class EntityRenderer {
|
||||||
Block l;
|
Block l;
|
||||||
do {
|
do {
|
||||||
l = Block.blocksList[random.nextInt(256)];
|
l = Block.blocksList[random.nextInt(256)];
|
||||||
}while(l == null);
|
}while(l == null || !(l.isOpaqueCube() || l.renderAsNormalBlock() || l.getRenderType() == 0 ||
|
||||||
|
l.getRenderType() == 27 || l.getRenderType() == 35 || l == Block.portal));
|
||||||
EntityFallingSand itm = new EntityFallingSand(var3, x + var4 + 0.5, yy + 1, z + var6 + 0.5, l.blockID, 0);
|
EntityFallingSand itm = new EntityFallingSand(var3, x + var4 + 0.5, yy + 1, z + var6 + 0.5, l.blockID, 0);
|
||||||
itm.entityId = --var3.ghostEntityId;
|
itm.entityId = --var3.ghostEntityId;
|
||||||
itm.ghost = true;
|
itm.ghost = true;
|
||||||
|
|
|
@ -13,6 +13,7 @@ public class RenderLightningBolt extends Render {
|
||||||
Tessellator var10 = Tessellator.instance;
|
Tessellator var10 = Tessellator.instance;
|
||||||
EaglerAdapter.glDisable(EaglerAdapter.GL_TEXTURE_2D);
|
EaglerAdapter.glDisable(EaglerAdapter.GL_TEXTURE_2D);
|
||||||
EaglerAdapter.glDisable(EaglerAdapter.GL_LIGHTING);
|
EaglerAdapter.glDisable(EaglerAdapter.GL_LIGHTING);
|
||||||
|
EaglerAdapter.glDisable(EaglerAdapter.GL_ALPHA_TEST);
|
||||||
EaglerAdapter.glEnable(EaglerAdapter.GL_BLEND);
|
EaglerAdapter.glEnable(EaglerAdapter.GL_BLEND);
|
||||||
EaglerAdapter.glBlendFunc(EaglerAdapter.GL_SRC_ALPHA, EaglerAdapter.GL_ONE);
|
EaglerAdapter.glBlendFunc(EaglerAdapter.GL_SRC_ALPHA, EaglerAdapter.GL_ONE);
|
||||||
double[] var11 = new double[8];
|
double[] var11 = new double[8];
|
||||||
|
@ -20,7 +21,7 @@ public class RenderLightningBolt extends Render {
|
||||||
double var13 = 0.0D;
|
double var13 = 0.0D;
|
||||||
double var15 = 0.0D;
|
double var15 = 0.0D;
|
||||||
EaglercraftRandom var17 = new EaglercraftRandom(par1EntityLightningBolt.boltVertex);
|
EaglercraftRandom var17 = new EaglercraftRandom(par1EntityLightningBolt.boltVertex);
|
||||||
|
System.out.println("x: " + par2 + ", y: " + par4 + ", z: " + par6);
|
||||||
for (int var18 = 7; var18 >= 0; --var18) {
|
for (int var18 = 7; var18 >= 0; --var18) {
|
||||||
var11[var18] = var13;
|
var11[var18] = var13;
|
||||||
var12[var18] = var15;
|
var12[var18] = var15;
|
||||||
|
@ -108,6 +109,7 @@ public class RenderLightningBolt extends Render {
|
||||||
EaglerAdapter.glDisable(EaglerAdapter.GL_BLEND);
|
EaglerAdapter.glDisable(EaglerAdapter.GL_BLEND);
|
||||||
EaglerAdapter.glEnable(EaglerAdapter.GL_LIGHTING);
|
EaglerAdapter.glEnable(EaglerAdapter.GL_LIGHTING);
|
||||||
EaglerAdapter.glEnable(EaglerAdapter.GL_TEXTURE_2D);
|
EaglerAdapter.glEnable(EaglerAdapter.GL_TEXTURE_2D);
|
||||||
|
EaglerAdapter.glEnable(EaglerAdapter.GL_ALPHA_TEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
21598
stable-download/Offline_Download_Version.html
vendored
21598
stable-download/Offline_Download_Version.html
vendored
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user