the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3class LevelObjectInputStream;
4
5/*
6
74J This code is not used.
8
9class LevelObjectInputStream : ObjectInputStream
10{
11 private Set<String> autoReplacers = new HashSet<String>();
12
13 public LevelObjectInputStream(InputStream in) throws IOException
14 {
15 super(in);
16
17 autoReplacers.add("com.mojang.minecraft.player.Player$1");
18 autoReplacers.add("com.mojang.minecraft.mob.Creeper$1");
19 autoReplacers.add("com.mojang.minecraft.mob.Skeleton$1");
20 }
21
22protected:
23 ObjectStreamClass readClassDescriptor() // 4J - throws IOException, ClassNotFoundException
24 {
25 ObjectStreamClass osc = super.readClassDescriptor();
26
27 if (autoReplacers.contains(osc.getName()))
28 {
29 return ObjectStreamClass.lookup(Class.forName(osc.getName()));
30 }
31 return osc;
32 }
33}
34*/