Skip to content

Commit 895b751

Browse files
committed
try fix issue 2
1 parent 0bf9f18 commit 895b751

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
blank_issues_enabled: false
2+
contact_links: []

common/src/main/java/io/github/lounode/eventwrapper/eventbus/api/IPlatformEventHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static void syncEventData(Object from, Object to) {
4848

4949
try {
5050
Field toField = Arrays.stream(toFields).filter(field -> field.getName().equals(name)).findFirst().orElse(null);
51-
if (!Modifier.isFinal(toField.getModifiers()) && toField.getType().equals(type)) {
51+
if (toField != null && !Modifier.isFinal(toField.getModifiers()) && toField.getType().equals(type)) {
5252
fromField.setAccessible(true);
5353
toField.setAccessible(true);
5454
Object value = fromField.get(from);

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ artifact_name = EventWrapper
2828
mod_id=eventwrapper
2929
mod_name=Event Wrapper
3030
mod_license=MIT License
31-
mod_version=1.1.0
31+
mod_version=1.1.1
3232
mod_group_id=io.github.lounode.eventwrapper
3333
mod_logo=assets/eventwrapper/textures/logo.png
3434
mod_authors=Lounode

0 commit comments

Comments
 (0)