This commit is contained in:
ttewrrr committed 2026-03-08 17:30:00 +01:00
1 parent f8ef076e70
commit 27532eb206
3025 files changed
-670604

No files matched your search

-34
View File
@@ -1,34 +0,0 @@
#pragma once
class LevelObjectInputStream;
/*
4J This code is not used.
class LevelObjectInputStream : ObjectInputStream
{
private Set<String> autoReplacers = new HashSet<String>();
public LevelObjectInputStream(InputStream in) throws IOException
{
super(in);
autoReplacers.add("com.mojang.minecraft.player.Player$1");
autoReplacers.add("com.mojang.minecraft.mob.Creeper$1");
autoReplacers.add("com.mojang.minecraft.mob.Skeleton$1");
}
protected:
ObjectStreamClass readClassDescriptor() // 4J - throws IOException, ClassNotFoundException
{
ObjectStreamClass osc = super.readClassDescriptor();
if (autoReplacers.contains(osc.getName()))
{
return ObjectStreamClass.lookup(Class.forName(osc.getName()));
}
return osc;
}
}
*/