atlarge-research / opencraft

Other
4 stars 2 forks source link

Refactor nether portal code - [merged] #186

Closed jdonkervliet closed 4 years ago

jdonkervliet commented 4 years ago

In GitLab by @larsdetombe on Jun 17, 2020, 16:13

Merges feature/refactor-nether-portal -> development

This merge request solves issue #113

jdonkervliet commented 4 years ago

In GitLab by @swabbur on Jun 17, 2020, 17:03

Commented on src/main/java/net/glowstone/block/itemtype/ItemFlintAndSteel.java line 96

It might be neater to write this if-statement the same as the previous two (as a negation).

// ...

if (!checkInsidePortal(cornerBlock, direction, width, height)) {
    return false;
}

fillPortal(cornerBlock, direction, width, height, player);
return true;
jdonkervliet commented 4 years ago

In GitLab by @larsdetombe on Jun 17, 2020, 17:09

Commented on src/main/java/net/glowstone/block/itemtype/ItemFlintAndSteel.java line 96

I hadn't thought about that, I will change it. It is indeed better this way.

jdonkervliet commented 4 years ago

In GitLab by @swabbur on Jun 17, 2020, 17:11

resolved all threads

jdonkervliet commented 4 years ago

In GitLab by @larsdetombe on Jun 17, 2020, 17:31

added 1 commit

Compare with previous version

jdonkervliet commented 4 years ago

In GitLab by @wubero on Jun 17, 2020, 17:37

enabled an automatic merge when the pipeline for bbd41c402f0e28245e330759daf576b184e23998 succeeds

jdonkervliet commented 4 years ago

In GitLab by @wubero on Jun 17, 2020, 17:44

merged

jdonkervliet commented 4 years ago

In GitLab by @wubero on Jun 17, 2020, 17:44

mentioned in commit 29f64f949903e71685e4968cda7fe32294bf293c