mirror of
				https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
				synced 2025-10-31 16:49:20 +00:00 
			
		
		
		
	
		
			
	
	
		
			19 lines
		
	
	
	
		
			622 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
		
		
			
		
	
	
			19 lines
		
	
	
	
		
			622 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
|   | --- a/net/minecraft/server/BlockStateInteger.java
 | ||
|  | +++ b/net/minecraft/server/BlockStateInteger.java
 | ||
|  | @@ -9,9 +9,15 @@
 | ||
|  |  public class BlockStateInteger extends BlockState<Integer> { | ||
|  |   | ||
|  |      private final ImmutableSet<Integer> a; | ||
|  | +    // CraftBukkit start
 | ||
|  | +    public final int min;
 | ||
|  | +    public final int max;
 | ||
|  |   | ||
|  |      protected BlockStateInteger(String s, int i, int j) { | ||
|  |          super(s, Integer.class); | ||
|  | +        this.min = i;
 | ||
|  | +        this.max = j;
 | ||
|  | +        // CraftBukkit end
 | ||
|  |          if (i < 0) { | ||
|  |              throw new IllegalArgumentException("Min value of " + s + " must be 0 or greater"); | ||
|  |          } else if (j <= i) { |