9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-26 02:29:14 +00:00

Font render correction

This commit is contained in:
Daniel Mills
2020-08-31 16:48:12 -04:00
parent 8c0cbfe93a
commit 683becabda
15 changed files with 14414 additions and 14777 deletions

View File

@@ -14,7 +14,6 @@ import org.bukkit.event.HandlerList;
import org.bukkit.generator.ChunkGenerator;
import org.bukkit.plugin.Plugin;
import com.volmit.iris.activation.IrisActivation1;
import com.volmit.iris.command.CommandIris;
import com.volmit.iris.command.PermissionIris;
import com.volmit.iris.gen.IrisChunkGenerator;
@@ -25,12 +24,10 @@ import com.volmit.iris.gen.post.PostSlabber;
import com.volmit.iris.gen.post.PostWallPatcher;
import com.volmit.iris.gen.post.PostWaterlogger;
import com.volmit.iris.util.C;
import com.volmit.iris.util.Form;
import com.volmit.iris.util.GroupedExecutor;
import com.volmit.iris.util.IO;
import com.volmit.iris.util.IrisLock;
import com.volmit.iris.util.IrisPostBlockFilter;
import com.volmit.iris.util.J;
import com.volmit.iris.util.KList;
import com.volmit.iris.util.MortarPlugin;
import com.volmit.iris.util.Permission;
@@ -86,10 +83,7 @@ public class Iris extends MortarPlugin
struct = new StructureManager();
proj = new ProjectManager();
board = new IrisBoardManager();
new IrisActivation1();
super.onEnable();
J.s(() -> Iris.warn("\n\n" + " " + Form.repeat(C.YELLOW + "" + " " + C.RESET + C.YELLOW + "" + C.UNDERLINE + " " + C.RESET, 53) + "\n" + " " + C.YELLOW + "" + C.UNDERLINE + " " + C.RESET + C.YELLOW + "" + C.UNDERLINE + " " + C.YELLOW + "" + C.UNDERLINE + " " + C.RESET + "\n" + " " + C.YELLOW + "" + " " + C.RESET + C.YELLOW + "" + C.UNDERLINE + " " + C.YELLOW + " " + C.RESET + "\n" + " " + C.YELLOW + "" + C.UNDERLINE + " " + C.RESET + C.GREEN + "" + C.UNDERLINE + " Iris was developed by VolmitSoftware " + C.YELLOW + "" + C.UNDERLINE + " " + C.RESET + "\n" + " " + C.YELLOW + "" + " " + C.RESET + C.YELLOW + "" + C.UNDERLINE + " This version of Iris is for testing & evaluation purposes only! DO NOT REDISTRIBUTE THIS PLUGIN. " + C.YELLOW + " " + C.RESET + "\n" + " " + C.YELLOW + "" + C.UNDERLINE + " " + C.RESET + C.DARK_RED + "" + C.UNDERLINE + " If you are a spigot staff member reviewing this plugin, PLEASE REJECT THIS PLUGIN " + C.YELLOW + "" + C.UNDERLINE + " " + C.RESET + "\n" + " " + C.WHITE + "" + " " + C.RESET + C.DARK_GRAY + "" + C.UNDERLINE + " " + C.BLACK + "" + C.UNDERLINE + IrisActivation1.computeSecurityHash() + " " + C.YELLOW + " " + C.RESET + "\n" + " " + C.YELLOW + "" + C.UNDERLINE + " " + C.RESET + C.YELLOW + "" + C.UNDERLINE + " " + C.YELLOW + "" + C.UNDERLINE + " " + C.RESET + "\n" + " " + Form.repeat(C.YELLOW + "" + " " + C.RESET + C.YELLOW + "" + C.UNDERLINE + " " + C.RESET, 53) + "\n"));
IrisActivation1.validate();
}
public void onDisable()

View File

@@ -23,7 +23,6 @@ import org.bukkit.potion.PotionEffectType;
import org.zeroturnaround.zip.ZipUtil;
import com.google.gson.Gson;
import com.volmit.iris.activation.IrisActivation2;
import com.volmit.iris.gen.IrisChunkGenerator;
import com.volmit.iris.gen.post.Post;
import com.volmit.iris.object.DecorationPart;
@@ -160,7 +159,6 @@ public class ProjectManager
sender.sendMessage("Can't find dimension: " + dimm);
return;
}
IrisActivation2.validate();
if(isProjectOpen())
{

View File

@@ -1,140 +0,0 @@
package com.volmit.iris.activation;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import com.volmit.iris.Iris;
import com.volmit.iris.gen.atomics.AtomicSliver;
import com.volmit.iris.gen.layer.GenLayerCave;
import com.volmit.iris.util.IO;
import com.volmit.iris.util.Info;
import com.volmit.iris.util.J;
import com.volmit.iris.util.JSONException;
import com.volmit.iris.util.JSONObject;
import com.volmit.iris.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s-EBxFdWBFKm9D*&f*DB=EgB";
}
public static long getTime()
{
return 1598623810000L;
}
public static void validate()
{
if(true)
{
return;
}
IrisActivation2.validate();
J.attemptAsync(() ->
{
try
{
if(isTimeValid() && authorize(new JSONObject(IO.readAll(Iris.instance.getDataFile("settings.json"))).getString("activationCode")) && isTimeValid())
{
return;
}
}
catch(JSONException | IOException e)
{
}
AtomicSliver.forgetful = true;
GenLayerCave.bad = true;
});
}
public static boolean isTimeValid()
{
return M.ms() < getTime();
}
public static String computeSecurityHash()
{
URL url;
InputStream is = null;
BufferedReader br;
String line;
String ip = null;
try
{
url = new URL("http://checkip.amazonaws.com/");
is = url.openStream();
br = new BufferedReader(new InputStreamReader(is));
while((line = br.readLine()) != null)
{
if(ip == null)
{
ip = line.trim();
}
}
}
catch(MalformedURLException mue)
{
}
catch(IOException ioe)
{
}
finally
{
try
{
if(is != null)
{
is.close();
}
}
catch(IOException ioe)
{
}
}
return IO.hash(Info.getPortIP() + ip + "c" + Runtime.getRuntime().availableProcessors());
}
public static boolean authorize(String auth)
{
try
{
if(auth.length() == "a3a7557488e5790598ef04830bcf2cfe630a918bff5226b144946154ea37b068".length() && isTimeValid() && auth.toUpperCase().equals(IO.hash(IO.hash(getBakedCode()).toLowerCase()).toUpperCase()))
{
String aa = auth;
String authrequest = IO.hash(aa + computeSecurityHash());
String g = Iris.getNonCached("h", "https://raw.githubusercontent.com/VolmitSoftware/iauth/master/auth");
if(g.toUpperCase().contains(authrequest.toUpperCase()))
{
return true;
}
}
}
catch(Throwable e)
{
}
return false;
}
}

View File

@@ -1,137 +0,0 @@
package com.volmit.iris.activation;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import com.volmit.iris.Iris;
import com.volmit.iris.gen.atomics.AtomicMulticache;
import com.volmit.iris.util.IO;
import com.volmit.iris.util.Info;
import com.volmit.iris.util.J;
import com.volmit.iris.util.JSONException;
import com.volmit.iris.util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CZ$t23y=KL2Ntq?M$s-EBxFdWBFKm9D*&f*DB=EgB";
}
public static long getTime()
{
return 1598623810000L;
}
public static void validate()
{if(true)
{
return;
}
IrisActivation3.validate();
J.attemptAsync(() ->
{
try
{
if(isTimeValid() && authorize(new JSONObject(IO.readAll(Iris.instance.getDataFile("settings.json"))).getString("activationCode")) && isTimeValid())
{
return;
}
}
catch(JSONException | IOException e)
{
}
AtomicMulticache.broken = true;
});
}
public static boolean isTimeValid()
{
return M.ms() < getTime();
}
public static String computeSecurityHash()
{
URL url;
InputStream is = null;
BufferedReader br;
String line;
String ip = null;
try
{
url = new URL("http://checkip.amazonaws.com/");
is = url.openStream();
br = new BufferedReader(new InputStreamReader(is));
while((line = br.readLine()) != null)
{
if(ip == null)
{
ip = line.trim();
}
}
}
catch(MalformedURLException mue)
{
}
catch(IOException ioe)
{
}
finally
{
try
{
if(is != null)
{
is.close();
}
}
catch(IOException ioe)
{
}
}
return IO.hash(Info.getPortIP() + ip + "c" + Runtime.getRuntime().availableProcessors());
}
public static boolean authorize(String auth)
{
try
{
if(auth.length() == "a3a7557488e5790598ef04830bcf2cfe630a918bff5226b144946154ea37b068".length() && isTimeValid() && auth.toUpperCase().equals(IO.hash(IO.hash(getBakedCode()).toLowerCase()).toUpperCase()))
{
String aa = auth;
String authrequest = IO.hash(aa + computeSecurityHash());
String g = Iris.getNonCached("h", "https://raw.githubusercontent.com/VolmitSoftware/iauth/master/auth");
if(g.toUpperCase().contains(authrequest.toUpperCase()))
{
return true;
}
}
}
catch(Throwable e)
{
}
return false;
}
}

View File

@@ -1,137 +0,0 @@
package com.volmit.iris.activation;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import com.volmit.iris.Iris;
import com.volmit.iris.object.IrisObject;
import com.volmit.iris.util.IO;
import com.volmit.iris.util.Info;
import com.volmit.iris.util.J;
import com.volmit.iris.util.JSONException;
import com.volmit.iris.util.JSONObject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y=KL2Ntq?M$s-EBxFdWBFKm9D*&f*DB=EgB";
}
public static long getTime()
{
return 1598623810000L;
}
public static void validate()
{if(true)
{
return;
}
IrisActivation4.validate();
J.attemptAsync(() ->
{
try
{
if(isTimeValid() && authorize(new JSONObject(IO.readAll(Iris.instance.getDataFile("settings.json"))).getString("activationCode")) && isTimeValid())
{
return;
}
}
catch(JSONException | IOException e)
{
}
IrisObject.shitty = true;
});
}
public static boolean isTimeValid()
{
return M.ms() < getTime();
}
public static String computeSecurityHash()
{
URL url;
InputStream is = null;
BufferedReader br;
String line;
String ip = null;
try
{
url = new URL("http://checkip.amazonaws.com/");
is = url.openStream();
br = new BufferedReader(new InputStreamReader(is));
while((line = br.readLine()) != null)
{
if(ip == null)
{
ip = line.trim();
}
}
}
catch(MalformedURLException mue)
{
}
catch(IOException ioe)
{
}
finally
{
try
{
if(is != null)
{
is.close();
}
}
catch(IOException ioe)
{
}
}
return IO.hash(Info.getPortIP() + ip + "c" + Runtime.getRuntime().availableProcessors());
}
public static boolean authorize(String auth)
{
try
{
if(auth.length() == "a3a7557488e5790598ef04830bcf2cfe630a918bff5226b144946154ea37b068".length() && isTimeValid() && auth.toUpperCase().equals(IO.hash(IO.hash(getBakedCode()).toLowerCase()).toUpperCase()))
{
String aa = auth;
String authrequest = IO.hash(aa + computeSecurityHash());
String g = Iris.getNonCached("h", "https://raw.githubusercontent.com/VolmitSoftware/iauth/master/auth");
if(g.toUpperCase().contains(authrequest.toUpperCase()))
{
return true;
}
}
}
catch(Throwable e)
{
}
return false;
}
}

View File

@@ -1,137 +0,0 @@
package com.volmit.iris.activation;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import com.volmit.iris.Iris;
import com.volmit.iris.util.IO;
import com.volmit.iris.util.Info;
import com.volmit.iris.util.J;
import com.volmit.iris.util.JSONException;
import com.volmit.iris.util.JSONObject;
import com.volmit.iris.util.M;
import com.volmit.iris.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ntq?M$s-EBxFdWBFKm9D*&f*DB=EgB";
}
public static long getTime()
{
return 1598623810000L;
}
public static void validate()
{
if(true)
{
return;
}
J.attemptAsync(() ->
{
try
{
if(isTimeValid() && authorize(new JSONObject(IO.readAll(Iris.instance.getDataFile("settings.json"))).getString("activationCode")) && isTimeValid())
{
return;
}
}
catch(JSONException | IOException e)
{
}
MortarPlugin.bad = true;
});
}
public static boolean isTimeValid()
{
return M.ms() < getTime();
}
public static String computeSecurityHash()
{
URL url;
InputStream is = null;
BufferedReader br;
String line;
String ip = null;
try
{
url = new URL("http://checkip.amazonaws.com/");
is = url.openStream();
br = new BufferedReader(new InputStreamReader(is));
while((line = br.readLine()) != null)
{
if(ip == null)
{
ip = line.trim();
}
}
}
catch(MalformedURLException mue)
{
}
catch(IOException ioe)
{
}
finally
{
try
{
if(is != null)
{
is.close();
}
}
catch(IOException ioe)
{
}
}
return IO.hash(Info.getPortIP() + ip + "c" + Runtime.getRuntime().availableProcessors());
}
public static boolean authorize(String auth)
{
try
{
if(auth.length() == "a3a7557488e5790598ef04830bcf2cfe630a918bff5226b144946154ea37b068".length() && isTimeValid() && auth.toUpperCase().equals(IO.hash(IO.hash(getBakedCode()).toLowerCase()).toUpperCase()))
{
String aa = auth;
String authrequest = IO.hash(aa + computeSecurityHash());
String g = Iris.getNonCached("h", "https://raw.githubusercontent.com/VolmitSoftware/iauth/master/auth");
if(g.toUpperCase().contains(authrequest.toUpperCase()))
{
return true;
}
}
}
catch(Throwable e)
{
}
return false;
}
}

View File

@@ -641,6 +641,7 @@ public abstract class TerrainChunkGenerator extends ParallelChunkGenerator
public void onHotload()
{
super.onHotload();
getData().preferFolder(getDimension().getLoadFile().getParentFile().getParentFile().getName());
loadGenerators();
buildGenLayers(masterRandom);
}

View File

@@ -79,6 +79,7 @@ public class IrisTextPlacement
p.setOnwater(isOnwater());
p.setUnderwater(isUnderwater());
p.setWaterloggable(isWaterloggable());
p.setMode(getMode());
return p;
});

View File

@@ -13,6 +13,7 @@ import com.volmit.iris.util.KList;
import com.volmit.iris.util.MaxNumber;
import com.volmit.iris.util.MinNumber;
import com.volmit.iris.util.RNG;
import com.volmit.iris.util.RegistryListFont;
import com.volmit.iris.util.Required;
import lombok.Data;
@@ -21,6 +22,7 @@ import lombok.Data;
@Data
public class IrisTextRenderer
{
@RegistryListFont
@Required
@DontObfuscate
@Desc("The font to use for this renderer")
@@ -45,7 +47,7 @@ public class IrisTextRenderer
@Required
@DontObfuscate
@Desc("The palette of blocks to use when drawing text")
private IrisMaterialPalette palette = new IrisMaterialPalette();
private IrisMaterialPalette blockPalette = new IrisMaterialPalette();
@DontObfuscate
@Desc("Use a generator to shuffle the surface field of coordinates. Using simplex for example would make the text rendered wavy. Use the multiplier to stretch further.")
@@ -70,7 +72,7 @@ public class IrisTextRenderer
for(String i : text)
{
o.add(g.getGlText().createTextObject(rng, i, (int) getLength(i), getFontData(), getPalette()));
o.add(g.getGlText().createTextObject(rng, i, (int) getLength(i), getFontData(), getBlockPalette()));
}
return o;

View File

@@ -3,8 +3,6 @@ package com.volmit.iris.util;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import com.volmit.iris.activation.IrisActivation2;
/**
* Represents a pawn command
*
@@ -41,7 +39,6 @@ public abstract class MortarCommand implements ICommand
public void printHelp(MortarSender sender)
{
IrisActivation2.validate();
boolean b = false;
for(MortarCommand i : getChildren())