mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-02-18 04:31:44 +01:00
Merge branch 'master' into dev
This commit is contained in:
commit
6d0b28fac4
@ -37,14 +37,12 @@ public class BukkitViaInjector implements ViaInjector {
|
|||||||
// Inject the list
|
// Inject the list
|
||||||
List wrapper = new ListWrapper((List) value) {
|
List wrapper = new ListWrapper((List) value) {
|
||||||
@Override
|
@Override
|
||||||
public synchronized void handleAdd(Object o) {
|
public void handleAdd(Object o) {
|
||||||
synchronized (this) {
|
if (o instanceof ChannelFuture) {
|
||||||
if (o instanceof ChannelFuture) {
|
try {
|
||||||
try {
|
injectChannelFuture((ChannelFuture) o);
|
||||||
injectChannelFuture((ChannelFuture) o);
|
} catch (Exception e) {
|
||||||
} catch (Exception e) {
|
e.printStackTrace();
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,14 +36,12 @@ public class SpongeViaInjector implements ViaInjector {
|
|||||||
// Inject the list
|
// Inject the list
|
||||||
List wrapper = new ListWrapper((List) value) {
|
List wrapper = new ListWrapper((List) value) {
|
||||||
@Override
|
@Override
|
||||||
public synchronized void handleAdd(Object o) {
|
public void handleAdd(Object o) {
|
||||||
synchronized (this) {
|
if (o instanceof ChannelFuture) {
|
||||||
if (o instanceof ChannelFuture) {
|
try {
|
||||||
try {
|
injectChannelFuture((ChannelFuture) o);
|
||||||
injectChannelFuture((ChannelFuture) o);
|
} catch (Exception e) {
|
||||||
} catch (Exception e) {
|
e.printStackTrace();
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user