Skip to content

Commit

Permalink
Spigot now calls a non-obfuscated addFreshEntity during structure gen…
Browse files Browse the repository at this point in the history
…eration, add to the proxy
  • Loading branch information
me4502 committed Jan 12, 2024
1 parent 64bcf66 commit b5c5890
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.Arrays;
import java.util.stream.Collectors;

public class PaperweightServerLevelDelegateProxy implements InvocationHandler {

Expand Down Expand Up @@ -136,7 +138,7 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl
return removeBlock(blockPos, bl);
}
}
case "j", "addEntity" -> {
case "j", "addEntity", "addFreshEntity" -> {
if (args.length >= 1 && args[0] instanceof Entity entity) {
return addEntity(entity);
}
Expand Down

0 comments on commit b5c5890

Please sign in to comment.