Closed jdonkervliet closed 4 years ago
In GitLab by @larsdetombe on May 25, 2020, 20:32
Commented on src/main/java/net/glowstone/entity/GlowEntity.java line 1044
Oops this should be nether
In GitLab by @swabbur on May 25, 2020, 20:40
Commented on src/main/java/net/glowstone/block/itemtype/ItemFlintAndSteel.java line 62
Missing a .
at the end of the sentence.
In GitLab by @swabbur on May 25, 2020, 20:41
Commented on src/main/java/net/glowstone/block/itemtype/ItemFlintAndSteel.java line 75
Could you add a whiteline at the start of this method?
In GitLab by @swabbur on May 25, 2020, 20:42
Commented on src/main/java/net/glowstone/block/itemtype/ItemFlintAndSteel.java line 68
The use of a local variable to store a constant seems a bit odd. If you really want it to be shorter, either store it in a local constant (class member variable), or import it statically.
In GitLab by @swabbur on May 25, 2020, 20:43
Commented on src/main/java/net/glowstone/GlowWorld.java line 617
It might be better to create getters for the previousAreaOfInterest
and location
variables, as they can than be used in Java streams and can be automatically copied (which is especially important with location
).
In GitLab by @swabbur on May 25, 2020, 20:44
Commented on src/main/java/net/glowstone/GlowWorld.java line 633
Now that we have access to the previous view distance, should that be compared as well?
In GitLab by @swabbur on May 25, 2020, 20:45
Commented on src/main/java/net/glowstone/GlowWorld.java line 646
The old view distance is not taken into consideration when determining which chunks should be loaded and/or unloaded.
In GitLab by @swabbur on May 25, 2020, 20:47
Commented on src/main/java/net/glowstone/GlowWorld.java line 697
Might it be better to store the radius instead of the view distance? As the radius is what we actually use to determine which chunks are interesting.
We could also store the view distance, keeping the AreaOfInterest
class decoupled from GlowServer
, and provide a method for computing the (previous) radius int computeRadius(int maxViewDistance);
.
In GitLab by @swabbur on May 25, 2020, 20:48
Commented on src/main/java/net/glowstone/entity/GlowPlayer.java line 603
As the area-of-interest value itself is never replaced, it could be made final.
In GitLab by @swabbur on May 25, 2020, 20:49
Commented on src/main/java/net/glowstone/entity/GlowPlayer.java line 208
I think it would be better to create a separate file for this class.
In GitLab by @swabbur on May 25, 2020, 20:50
Commented on src/main/java/net/glowstone/entity/GlowPlayer.java line 216
Could you add an equals
method, such that we can simplify the check whether the AreaOfInterest
has changed in streamChunks
/TopicPolicy
?
In GitLab by @JimVliet on May 26, 2020, 24:41
Commented on src/main/java/net/glowstone/GlowWorld.java line 646
There is an open issue for this: #43. So do we want to fix this in this MR or another one? I'd argue fix this separately.
In GitLab by @JimVliet on May 26, 2020, 24:42
Commented on src/main/java/net/glowstone/GlowWorld.java line 697
The radius is normally just 1 + viewdistance
. So I'd say keep it as is.
In GitLab by @JimVliet on May 26, 2020, 24:45
Commented on src/main/java/net/glowstone/block/itemtype/ItemFlintAndSteel.java line 49
I am not sure if I understand this code correctly, but wouldn't placing extra obsidian around the block result in the portal having the wrong orientation.
In GitLab by @wubero on May 26, 2020, 09:42
Commented on src/main/java/net/glowstone/GlowWorld.java line 646
I agree, we should fix this in a separate MR
In GitLab by @wubero on May 26, 2020, 09:44
Commented on src/main/java/net/glowstone/entity/GlowPlayer.java line 212
You're missing javadoc before this constructor and before the class definition
In GitLab by @larsdetombe on May 26, 2020, 11:02
Commented on src/main/java/net/glowstone/entity/GlowEntity.java line 1044
changed this line in version 2 of the diff
In GitLab by @larsdetombe on May 26, 2020, 11:02
Commented on src/main/java/net/glowstone/block/itemtype/ItemFlintAndSteel.java line 62
changed this line in version 2 of the diff
In GitLab by @larsdetombe on May 26, 2020, 11:02
Commented on src/main/java/net/glowstone/block/itemtype/ItemFlintAndSteel.java line 68
changed this line in version 2 of the diff
In GitLab by @larsdetombe on May 26, 2020, 11:02
Commented on src/main/java/net/glowstone/GlowWorld.java line 617
changed this line in version 2 of the diff
In GitLab by @larsdetombe on May 26, 2020, 11:02
Commented on src/main/java/net/glowstone/GlowWorld.java line 697
changed this line in version 2 of the diff
In GitLab by @larsdetombe on May 26, 2020, 11:02
Commented on src/main/java/net/glowstone/entity/GlowPlayer.java line 603
changed this line in version 2 of the diff
In GitLab by @larsdetombe on May 26, 2020, 11:02
Commented on src/main/java/net/glowstone/entity/GlowPlayer.java line 208
changed this line in version 2 of the diff
In GitLab by @larsdetombe on May 26, 2020, 11:02
Commented on src/main/java/net/glowstone/entity/GlowPlayer.java line 216
changed this line in version 2 of the diff
In GitLab by @larsdetombe on May 26, 2020, 11:02
Commented on src/main/java/net/glowstone/block/itemtype/ItemFlintAndSteel.java line 49
changed this line in version 2 of the diff
In GitLab by @larsdetombe on May 26, 2020, 11:02
Commented on src/main/java/net/glowstone/entity/GlowPlayer.java line 212
changed this line in version 2 of the diff
In GitLab by @larsdetombe on May 26, 2020, 11:02
added 1 commit
In GitLab by @larsdetombe on May 26, 2020, 11:04
Commented on src/main/java/net/glowstone/block/itemtype/ItemFlintAndSteel.java line 49
If there is an obsidian block facing north, but no portal in the opposite direction, then no portal would be created, even though a valid portal could exist facing east for example. I fixed this by chhecking for a valid portal in all directions.
In GitLab by @larsdetombe on May 26, 2020, 11:05
Commented on src/main/java/net/glowstone/entity/GlowPlayer.java line 216
I added the equals method.
In GitLab by @larsdetombe on May 26, 2020, 11:06
Commented on src/main/java/net/glowstone/GlowWorld.java line 633
This should be done in a seperate merge request.
In GitLab by @larsdetombe on May 26, 2020, 11:11
changed the description
In GitLab by @larsdetombe on May 26, 2020, 11:11
changed the description
In GitLab by @larsdetombe on May 26, 2020, 11:15
added 1 commit
In GitLab by @swabbur on May 26, 2020, 12:16
Commented on src/main/java/net/glowstone/GlowWorld.java line 633
I agree.
In GitLab by @swabbur on May 26, 2020, 12:17
Commented on src/main/java/net/glowstone/GlowWorld.java line 646
Sure, that's fine by me.
In GitLab by @swabbur on May 26, 2020, 12:21
Commented on src/main/java/net/glowstone/GlowWorld.java line 697
As this is part of the view distance, which has been moved to a separate issue, we will discuss it there. My idea was to rename location to center and store the view distance/radius, such that the AOI only changes whenever an impactful change in view distance occurs.
In GitLab by @swabbur on May 26, 2020, 12:22
Commented on src/main/java/net/glowstone/util/AreaOfInterest.java line 35
Could you rename the variable o
to a full name like object
or other
?
In GitLab by @swabbur on May 26, 2020, 12:23
Commented on src/main/java/net/glowstone/util/AreaOfInterest.java line 24
Missing whiteline inbetween description and parameters.
In GitLab by @swabbur on May 26, 2020, 12:24
Commented on src/main/java/net/glowstone/util/AreaOfInterest.java line 15
Location's getter should be implemented manually, as it should create a copy/clone of the location instead of returning a reference to the original.
In GitLab by @larsdetombe on May 26, 2020, 12:42
changed the description
In GitLab by @larsdetombe on May 26, 2020, 12:56
Commented on src/main/java/net/glowstone/util/AreaOfInterest.java line 35
changed this line in version 4 of the diff
In GitLab by @larsdetombe on May 26, 2020, 12:56
added 1 commit
In GitLab by @swabbur on May 26, 2020, 12:59
resolved all threads
In GitLab by @larsdetombe on May 26, 2020, 13:03
added 17 commits
development
In GitLab by @swabbur on May 26, 2020, 13:09
Commented on src/main/java/net/glowstone/block/itemtype/ItemFlintAndSteel.java line 50
This list of block faces was previously called "SIDES" and was placed as a constant in another file. Might it be better to add/move this SIDES constant to the BlockFace class and create a copy of it here?
Also, Instead of creating a raw array, you could also use Arrays.asList(...);
.
In GitLab by @swabbur on May 26, 2020, 13:20
Commented on src/main/java/net/glowstone/entity/GlowEntity.java line 1048
This method misses a number of whitelines.
In GitLab by @larsdetombe on May 26, 2020, 13:31
Commented on src/main/java/net/glowstone/block/itemtype/ItemFlintAndSteel.java line 50
changed this line in version 6 of the diff
In GitLab by @larsdetombe on May 26, 2020, 13:31
added 1 commit
In GitLab by @swabbur on May 26, 2020, 13:43
resolved all threads
In GitLab by @JimVliet on May 26, 2020, 14:11
Is there a reason for not including any tests.
In GitLab by @larsdetombe on May 25, 2020, 20:29
Merges bugfix/nether-portal -> development
This resolves issue #72 and #83