mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-10-31 01:23:44 +01:00 
			
		
		
		
	Fixes #534
This commit is contained in:
		| @@ -90,12 +90,12 @@ public class HybridPlotManager extends ClassicPlotManager { | |||||||
|     public void createSchemAbs(HybridPlotWorld hpw, Location pos1, Location pos2, int height, boolean clear) { |     public void createSchemAbs(HybridPlotWorld hpw, Location pos1, Location pos2, int height, boolean clear) { | ||||||
|         final int size = hpw.SIZE; |         final int size = hpw.SIZE; | ||||||
|         for (int x = pos1.getX(); x <= pos2.getX(); x++) { |         for (int x = pos1.getX(); x <= pos2.getX(); x++) { | ||||||
|             short absX = (short) ((x - hpw.ROAD_OFFSET_X) & (size - 1)); |             short absX = (short) ((x - hpw.ROAD_OFFSET_X) % (size)); | ||||||
|             if (absX < 0) { |             if (absX < 0) { | ||||||
|                 absX += size; |                 absX += size; | ||||||
|             } |             } | ||||||
|             for (int z = pos1.getZ(); z <= pos2.getZ(); z++) { |             for (int z = pos1.getZ(); z <= pos2.getZ(); z++) { | ||||||
|                 short absZ = (short) ((z - hpw.ROAD_OFFSET_Z) & (size - 1)); |                 short absZ = (short) ((z - hpw.ROAD_OFFSET_Z) % (size)); | ||||||
|                 if (absZ < 0) { |                 if (absZ < 0) { | ||||||
|                     absZ += size; |                     absZ += size; | ||||||
|                 } |                 } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 boy0001
					boy0001