22w36a Fixed invisible lightning

This commit is contained in:
LAX1DUDE 2022-09-05 20:46:01 -07:00
parent 09a5fa6760
commit bf85c312f3
13 changed files with 32406 additions and 32396 deletions

View File

@ -71,7 +71,8 @@ public class Configuration {
this.showBanType = adapter.getBoolean("display_ban_type_on_kick", false);
this.blacklistOfflineDownload = adapter.getBoolean("origin_blacklist_block_offline_download", 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.acceptBukkitConsoleCommandPacket = adapter.getBoolean("accept_bukkit_console_command_packets", false);
this.bungeeOnBungee = adapter.getBoolean("bungee_on_bungee", false);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@ public class ConfigConstants {
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 forkMe = "https://github.com/lax1dude/eaglercraft";

View File

@ -1394,7 +1394,8 @@ public class EntityRenderer {
Block l;
do {
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);
itm.entityId = --var3.ghostEntityId;
itm.ghost = true;

View File

@ -13,6 +13,7 @@ public class RenderLightningBolt extends Render {
Tessellator var10 = Tessellator.instance;
EaglerAdapter.glDisable(EaglerAdapter.GL_TEXTURE_2D);
EaglerAdapter.glDisable(EaglerAdapter.GL_LIGHTING);
EaglerAdapter.glDisable(EaglerAdapter.GL_ALPHA_TEST);
EaglerAdapter.glEnable(EaglerAdapter.GL_BLEND);
EaglerAdapter.glBlendFunc(EaglerAdapter.GL_SRC_ALPHA, EaglerAdapter.GL_ONE);
double[] var11 = new double[8];
@ -20,7 +21,7 @@ public class RenderLightningBolt extends Render {
double var13 = 0.0D;
double var15 = 0.0D;
EaglercraftRandom var17 = new EaglercraftRandom(par1EntityLightningBolt.boltVertex);
System.out.println("x: " + par2 + ", y: " + par4 + ", z: " + par6);
for (int var18 = 7; var18 >= 0; --var18) {
var11[var18] = var13;
var12[var18] = var15;
@ -108,6 +109,7 @@ public class RenderLightningBolt extends Render {
EaglerAdapter.glDisable(EaglerAdapter.GL_BLEND);
EaglerAdapter.glEnable(EaglerAdapter.GL_LIGHTING);
EaglerAdapter.glEnable(EaglerAdapter.GL_TEXTURE_2D);
EaglerAdapter.glEnable(EaglerAdapter.GL_ALPHA_TEST);
}
/**

File diff suppressed because one or more lines are too long

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