Skip to content

Commit

Permalink
Fix CME in WorldServer
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Allan <rallanpcl@gmail.com>
  • Loading branch information
LunNova committed Jul 9, 2013
1 parent 4258176 commit d47f6d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/common/nallar/tickthreading/patcher/Patches.java
Expand Up @@ -699,6 +699,9 @@ public void addAll(CtClass ctClass, Map<String, String> attributes) throws NotFo
try {
CtMethod oldMethod = ctClass.getDeclaredMethod(newMethod.getName(), newMethod.getParameterTypes());
replaceMethod(oldMethod, newMethod);
if (Modifier.isSynchronized(newMethod.getModifiers())) {
oldMethod.setModifiers(oldMethod.getModifiers() | Modifier.SYNCHRONIZED);
}
} catch (NotFoundException ignored) {
CtMethod added = CtNewMethod.copy(newMethod, ctClass, classMap);
ctClass.addMethod(added);
Expand Down

0 comments on commit d47f6d3

Please sign in to comment.