Advertisement
WolfieMario

Uncorrupt14w26b

Jun 26th, 2014
2,351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | None | 0 0
  1. # Filter by WolfieMario
  2. # You may modify and distribute this filter however you wish.
  3.  
  4. displayName = "Uncorrupt 14w26a+b"
  5.  
  6. inputs = (
  7.     ("14w26a/b world-repairing filter by WolfieMario\n", "label"),
  8.     ("This filter will fix world corruptions caused by snapshots 14w26a and 14w26b. Do not use it on modded worlds. After repairing the world, you can play it on 14w26c or later.", "label"),
  9. )
  10.  
  11. def perform(level, box, options):
  12.     for (chunk, slices, point) in level.getChunkSlices(box):
  13.         blocks = chunk.Blocks[slices]
  14.         blocks[:] = blocks[:] & 255
  15.         chunk.chunkChanged(False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement