Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
Cleanup and fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Gunnar Gudvardarson committed Jul 29, 2013
1 parent 452cf53 commit 86edea2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<attribute name="javadoc_location" value="http://jd.bukkit.org/apidocs/"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="D:/Documents/Eclipse Workspace/coordfuscation/test/plugins/ProtocolLib-2.5.0.jar">
<classpathentry kind="lib" path="D:/Documents/Eclipse Workspace/coordfuscation-test/plugins/ProtocolLib-2.5.0.jar">
<attributes>
<attribute name="javadoc_location" value="http://aadnk.github.com/ProtocolLib/Javadoc/"/>
</attributes>
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/bin
/test
26 changes: 23 additions & 3 deletions src/cc/kjarni/aetherous/coordfuscation/Coordfuscation.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
/**
* Copyright (c) 2013 Gabríel Arthúr Pétursson, Gunnar Guðvarðarson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

package cc.kjarni.aetherous.coordfuscation;

import java.util.HashMap;
Expand Down Expand Up @@ -26,7 +48,7 @@ public final class Coordfuscation extends JavaPlugin
{
/**
* Minecraft has various issues with large coordinates.
* There are rounding issues for item frames (MC-3493).
* There are issues for item frames (MC-3493).
* There are huge floating point issues with coords > 20M.
*
* Also if the absolute number of X or Z is set greater than
Expand All @@ -53,8 +75,6 @@ private Offset offsetCoords(Player player)
offY &= ~0x0F;

offsets.put(player, new Offset(offX, offY));

getLogger().info("Offset for " + player.getPlayerListName() + " is (" + offset.X + ", " + offset.Y + ")");
}

return offset;
Expand Down

0 comments on commit 86edea2

Please sign in to comment.